Skip to content

Commit

Permalink
Update rust_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pirayya authored Dec 13, 2024
1 parent 83dffb6 commit 7fb25a5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/rust_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
- name: Login to Azure container registry
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Get version from github ref
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT


- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: r2mhub/joel-bot:${{ steps.get_version.outputs.VERSION }}
tags: ${{ secrets.REGISTRY_LOGIN_SERVER }}/joel-bot:${{ steps.get_version.outputs.VERSION }}

deploy:
runs-on: ubuntu-latest
Expand All @@ -54,7 +54,7 @@ jobs:
uses: azure/webapps-deploy@v3
with:
app-name: joel-bot
images: r2mhub/joel-bot:${{ steps.get_version.outputs.VERSION }}
images: ${{ secrets.REGISTRY_LOGIN_SERVER }}/joel-bot:${{ steps.get_version.outputs.VERSION }}

- name: Azure logout
run: |
Expand Down

0 comments on commit 7fb25a5

Please sign in to comment.