Skip to content

Commit

Permalink
Update build-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
qjoly authored Aug 26, 2024
1 parent ca89054 commit c30fc90
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,14 @@ jobs:
include:
- Dockerfile: coffee-maker/Dockerfile
context: coffee-maker
tag: coffee-maker
tag: latest
name: "coffee-maker"


steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }} # Use the new secret here

- name: Checkout code
uses: actions/checkout@v4

Expand All @@ -45,5 +40,5 @@ jobs:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/une-tasse-de.cafe/${{ env.reponame }}:${{ matrix.tag }}
tags: ghcr.io/une-tasse-de.cafe/${{ env.reponame }}/${{ matrix.name }}:${{ matrix.tag }}
platforms: linux/amd64,linux/arm64

0 comments on commit c30fc90

Please sign in to comment.