Skip to content

Commit

Permalink
Update Docker secrets and container tag in GitHub workflow
Browse files Browse the repository at this point in the history
In the GitHub workflow for deploying the Docker container, the secrets for Docker username and token have been updated. Also, the tag used for the Docker container is now fetched from a secret, allowing greater flexibility in tagging.
  • Loading branch information
stitts-dev committed May 23, 2024
1 parent 792df59 commit 523b69f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: user/portfolio:latest
tags: user/${{ secrets.CONTAINER_TAG }}:latest

0 comments on commit 523b69f

Please sign in to comment.