Skip to content

Commit

Permalink
Updated docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Mar 7, 2024
1 parent a2d75a8 commit f8fc7d6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,18 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build image and push to dockerhub
- name: Get version
run: |
export VERSION=$(git describe --tags --dirty)
echo $VERSION
docker build --build-arg VERSION -t $VERSION .
docker push $VERSION cossas/soarca:$VERSION
echo "describe_version=$VERSION" >> "$GITHUB_ENV"
- name: Build and push
uses: docker/build-push-action@v5
with:
build-args: |
VERSION=$describe_version
push: true
tags: cossas/soarca:$describe_version

release-binary:
needs: compile
Expand Down

0 comments on commit f8fc7d6

Please sign in to comment.