diff --git a/.github/workflows/rust_publish.yml b/.github/workflows/rust_publish.yml index 3fe96b7..4bb89eb 100644 --- a/.github/workflows/rust_publish.yml +++ b/.github/workflows/rust_publish.yml @@ -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 @@ -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: |