Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,43 @@ name: Docker

on:
workflow_dispatch:
inputs:
tag:
description: 'The tag of the image to build'
required: true
type: string

push:
tags:
- v[0-9]+.*

env:
REGISTRY_IMAGE: informalsystems/hermes
GIT_TAG: "${{ inputs.tag || github.ref_name }}"


jobs:
docker-build:
permissions:
packages: write
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- id: linux/amd64
name: amd64
runner: ubuntu-24.04
- id: linux/arm64
name: arm64
runner: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: "${{ env.GIT_TAG }}"
fetch-depth: 0

- name: Docker meta
id: meta
Expand All @@ -36,9 +52,6 @@ jobs:
type=ref,event=branch
type=semver,pattern={{version}}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand Down