Skip to content

Commit

Permalink
feat: use ghcrio login step
Browse files Browse the repository at this point in the history
  • Loading branch information
fredleger committed Oct 9, 2023
1 parent 6bb5dcb commit 0439f74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly" # Check for updates to GitHub Actions every week
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@ jobs:
env:
TAG_OR_BRANCH: ${{ steps.refortag.outputs.value }}

- name: Login to github container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCRIO_USERNAME }}
password: ${{ secrets.GHCRIO_PASSWORD }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
tags: ${{ env.IMAGE_NAME }}:${{ steps.imagetag.outputs.value }}
file: Dockerfile
platforms: ${{ env.PLATFORMS }}
secrets: |
"github_token=${{ secrets.CR_PAT }}"
push: true

0 comments on commit 0439f74

Please sign in to comment.