Skip to content

Commit

Permalink
Remove deprecated publish steps
Browse files Browse the repository at this point in the history
  • Loading branch information
chrztoph committed Apr 8, 2024
1 parent 590c343 commit 93125c1
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93125c1

Please sign in to comment.