diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 24aa3f1e..81c85ffa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,32 +23,9 @@ jobs: - name: Set RELEASE_VERSION env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build the Docker image for cloud run: docker build . --file Dockerfile --target production --build-arg COMMIT_HASH=$GITHUB_SHA --build-arg PROPRIETARY_MODE=${{ secrets.PROPRIETARY_MODE }} --build-arg STRIPE_PUBLIC_API_KEY=${{ secrets.STRIPE_PUBLIC_API_KEY }} --build-arg TEXTERIFY_PAYMENT_SERVER=${{ secrets.TEXTERIFY_PAYMENT_SERVER }} --build-arg SENTRY_DSN_FRONTEND=${{ secrets.SENTRY_DSN_FRONTEND }} --tag chrztoph/texterify-cloud:$GITHUB_SHA - - name: Tag cloud image also as latest - run: docker tag chrztoph/texterify-cloud:$GITHUB_SHA chrztoph/texterify-cloud:latest - - - name: Push images - run: | - docker push chrztoph/texterify-cloud:$GITHUB_SHA - docker push chrztoph/texterify-cloud:latest - - - name: Tag image if tag is set - if: env.RELEASE_VERSION - run: docker tag chrztoph/texterify-cloud:$GITHUB_SHA chrztoph/texterify-cloud:${{ env.RELEASE_VERSION }} - - - name: Push images if tag is set - if: env.RELEASE_VERSION - run: | - docker push chrztoph/texterify-cloud:${{ env.RELEASE_VERSION }} - # Push to DigitalOcean registry - name: Install doctl uses: digitalocean/action-doctl@v2