Skip to content
Open
Show file tree
Hide file tree
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
107 changes: 0 additions & 107 deletions .github/actions/docker-publish/action.yaml

This file was deleted.

51 changes: 25 additions & 26 deletions .github/workflows/docker_publish.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Pin: FuelLabs/github-actions/.github/workflows/docker-build-push.yml@master
#
# Do not use strategy.matrix on the same job as workflow_call + job-level `if` with
# matrix.* — job `if` is evaluated before matrix expansion for reusable workflows.
# Add one job per package with an explicit `if` (package name literal) instead.
name: Build and publish Docker image

on:
Expand Down Expand Up @@ -27,29 +32,23 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-publish-image:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
package:
- name: sv-dune
image: cluster/docker/sv-dune.Dockerfile
steps:
- uses: actions/checkout@v4

- name: Get short SHA
id: sha
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Build and push Docker for ${matrix.package.name} (${{ steps.sha.outputs.short_sha }})
if: |
(github.event_name == 'workflow_dispatch' && (github.event.inputs.package == 'all' || github.event.inputs.package == matrix.package.name)) ||
github.event_name != 'workflow_dispatch'
uses: ./.github/actions/docker-publish
id: publish
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
image: ghcr.io/fuellabs/${{ matrix.package.name }}
dockerfile: ${{ matrix.package.image }}
build-and-publish-sv-dune:
uses: FuelLabs/github-actions/.github/workflows/docker-build-push.yml@master
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.package == 'all' || github.event.inputs.package == 'sv-dune' }}
with:
auth-mode: registry-login
registry: ghcr.io
build-backend: native
platforms: linux/amd64,linux/arm64
runs-on-amd64: ubuntu-latest
runs-on-arm64: ubuntu-24.04-arm
docker-context: .
dockerfile: cluster/docker/sv-dune.Dockerfile
image: ghcr.io/fuellabs/sv-dune
tags: |
type=ref,event=branch
type=sha,prefix=
type=semver,pattern={{raw}}
secrets:
REGISTRY_USERNAME: ${{ github.repository_owner }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
Comment thread
gondoi marked this conversation as resolved.
Loading