Skip to content

Push the built image to the registry #7

Push the built image to the registry

Push the built image to the registry #7

Workflow file for this run

name: Docker Build
on:
push:
workflow_dispatch:
jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Debug environment
run: env | sort
build:
needs:
- debug
outputs:
tags: ${{ steps.meta.outputs.tags }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Determine Docker image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: type=sha,suffix=-pre-${{ github.run_id }}_${{ github.run_attempt }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
test:
needs: build
uses: ./.github/workflows/test.yml
with:
image: ${{ needs.build.outputs.tags }}