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,11 @@
# Pin the reusable workflow to a commit until the PR is merged; then prefer a semver tag.
# Ref must be a literal (not env). Update SHA when rebasing the shared-workflow PR.
# Inner steps in docker-build-push.yml use FuelLabs/github-actions composites; they may
# still reference @master — if something diverges during testing, align those refs in the PR.
#
# 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 +35,20 @@ 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@5490f7a575a5542ce50985f705be35f28a9350e7
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
docker-context: .
dockerfile: cluster/docker/sv-dune.Dockerfile
image: ghcr.io/fuellabs/sv-dune
platforms: linux/amd64,linux/arm64
tags: |
type=ref,event=branch
type=sha,prefix=
type=semver,pattern={{raw}}
secrets:
REGISTRY_USERNAME: ${{ github.repository_owner }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
Loading