Skip to content

Commit

Permalink
fixup! fix: ci push to docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Sep 13, 2024
1 parent dc20824 commit 6217e89
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
matrix:
images:
- path: "docker/namadillo/Dockerfile"
tag: "namadillo"
tag: "namadillo-main"
- path: "docker/faucet/Dockerfile"
tag: "faucet-interface"
tag: "faucet-interface-main"

steps:
- name: Checkout repository
Expand All @@ -42,12 +42,19 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/namada-interface
tags: type=raw,value=${{ matrix.images.tag }}
- name: Build and Push docker image
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.images.path }}
push: true
tags: ${{ github.repository_owner }}/namada-interface:${{ matrix.images.tag }}-latest, ${{ github.repository_owner }}/namada-interface:${{ matrix.images.tag }}-main
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 6217e89

Please sign in to comment.