Skip to content

Merge pull request #52 from cardano-scaling/fix/init-action-write #2

Merge pull request #52 from cardano-scaling/fix/init-action-write

Merge pull request #52 from cardano-scaling/fix/init-action-write #2

Workflow file for this run

name: Init
on:
push:
branches:
- "main"
paths:
- ".github/workflows/init.yml"
- ".github/images/init/**"
workflow_dispatch: {}
jobs:
build-images:
permissions: write-all
strategy:
fail-fast: false
matrix:
include:
- context: .
file: .github/images/init/dockerfile.init
endpoint: cardano-scaling/hydra-control-plane-init
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
platforms: linux/amd64
push: true
tags:
ghcr.io/${{ matrix.endpoint }},ghcr.io/${{ matrix.endpoint }}:${{
github.sha }}