Skip to content

Commit

Permalink
Push to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
acroca committed Feb 27, 2024
1 parent 2919274 commit 1d16ac5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,26 @@ jobs:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

-
name: Login to Docker Hub
uses: docker/login-action@v2
name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

-
name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: acroca/fitm-proxy

-
name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 1d16ac5

Please sign in to comment.