Skip to content

Commit

Permalink
Add docker login step
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed Jan 6, 2025
1 parent 0850585 commit 0b4f7c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
IMAGE_NAME: ${{ github.repository }}
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: docker build -t "${REGISTRY}/${IMAGE_NAME}:main" .
- name: Push Docker image
Expand Down

0 comments on commit 0b4f7c2

Please sign in to comment.