From f2c537c1e3041a76477ae26260015cb07041e86c Mon Sep 17 00:00:00 2001 From: Pierce Thompson Date: Fri, 19 Apr 2024 23:12:11 -0400 Subject: [PATCH] v0.8.0 release build --- .github/workflows/docker.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a4af87a..ac417b9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -25,14 +25,12 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v3 - if: ${{ !env.ACT && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) && github.event_name != 'pull_request' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Docker Hub Description uses: peter-evans/dockerhub-description@v3 - if: $${{ !env.ACT && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) && github.event_name != 'pull_request' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -42,17 +40,17 @@ jobs: - name: Set Environment Variables run: | echo "IN_IS_GIT=true" >> .env - echo "IN_GIT_HASH=$(git rev-parse --short HEAD)" >> .env - echo "IN_GIT_DIRTY=$([[ -n $(git status --porcelain) ]] && echo true || echo false)" >> .env - echo "IN_GIT_TAG=$(git describe --tags --exact-match)" >> .env - echo "IN_GIT_TAGGED=$([[ -n $(git describe --tags --exact-match) ]] && echo true || echo false)" >> .env + echo "IN_GIT_HASH=ced8d640838231474f9a1630bd5790ee96bfa898" >> .env + echo "IN_GIT_DIRTY=false" >> .env + echo "IN_GIT_TAG=v0.8.0" >> .env + echo "IN_GIT_TAGGED=true" >> .env echo "IN_GIT_REMOTE_URL=$(git remote get-url origin)" >> .env - name: Build & Push uses: docker/build-push-action@v5 with: context: . # Required for running with act - push: ${{ !env.ACT && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) && github.event_name != 'pull_request' }} + push: true tags: ${{ env.DOCKER_IMAGE }}:${{ startsWith(github.ref, 'refs/tags/v') && 'latest' || 'develop' }} platforms: ${{ env.DOCKER_PLATFORMS }} cache-from: type=gha