Skip to content

Commit

Permalink
add push to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
sholdee committed Jun 30, 2024
1 parent 7d72635 commit 7ac2c94
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Cache Docker layers
uses: actions/cache@v4
with:
Expand All @@ -72,10 +79,13 @@ jobs:
tags: |
sholdee/adguardexporter:latest
sholdee/adguardexporter:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
platforms: linux/amd64,linux/arm64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Verify Docker manifest
run: |
docker buildx imagetools inspect sholdee/adguardexporter:latest
docker buildx imagetools inspect ghcr.io/${{ github.repository }}:latest

0 comments on commit 7ac2c94

Please sign in to comment.