Skip to content

ci: fix push to github docker registry #4

ci: fix push to github docker registry

ci: fix push to github docker registry #4

Workflow file for this run

name: Docker 🐳
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
env:
GIT_LFS_SKIP_SMUDGE: 1
permissions:
id-token: write
contents: write
packages: write
jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
images:
- path: "docker/namadillo/Dockerfile"
tag: "namadillo"
- path: "docker/faucet/Dockerfile"
tag: "faucet-interface"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push docker image
uses: docker/build-push-action@v3
with:
context: .
file: ${{ matrix.images.path }}
push: true
tags: ${{ github.repository_owner }}/${{ matrix.images.tag }}-latest, ${{ github.repository_owner }}/${{ matrix.images.tag }}-main
cache-from: type=gha
cache-to: type=gha,mode=max