Skip to content

ci(docker): manifest job was missing the /web-gui repo namespace #10

ci(docker): manifest job was missing the /web-gui repo namespace

ci(docker): manifest job was missing the /web-gui repo namespace #10

Workflow file for this run

name: Docker Images
# Builds the deployable images (web-gui, bdk-wallet, btc-explorer) for
# amd64 + arm64 so a VPS / Raspberry Pi can `docker compose pull` without
# building anything locally.
#
# - push to main -> ghcr.io/mintlayer/web-gui/<image>:latest (+ :main, :sha)
# - push to other branches-> ghcr.io/mintlayer/web-gui/<image>:br-<branch>
# - tag v* -> ghcr.io/mintlayer/web-gui/<image>:v<tag>
# - pull_request -> build only (no push), catches Dockerfile breakage
on:
push:
branches: ["**"]
tags: ["v*"]
pull_request:
branches: [main]
env:
REGISTRY: ghcr.io
OWNER: mintlayer
permissions:
contents: read
packages: write
jobs:
web-gui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
if: github.event_name != 'pull_request'
with:
images: ${{ env.REGISTRY }}/${{ env.OWNER }}/web-gui
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch,prefix=br-
type=ref,event=tag
type=sha,format=short
- uses: docker/build-push-action@v6
with:
context: ./app
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
bdk-wallet:
# Rust build under emulation for arm64 — first run is slow, later runs
# hit the GHA layer cache.
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v7
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
if: github.event_name != 'pull_request'
with:
images: ${{ env.REGISTRY }}/${{ env.OWNER }}/bdk-wallet
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch,prefix=br-
type=ref,event=tag
type=sha,format=short
- uses: docker/build-push-action@v6
with:
context: ./bdk-wallet
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
btc-explorer:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
if: github.event_name != 'pull_request'
with:
images: ${{ env.REGISTRY }}/${{ env.OWNER }}/btc-explorer
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch,prefix=br-
type=ref,event=tag
type=sha,format=short
- uses: docker/build-push-action@v6
with:
context: ./btc-explorer
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max