Skip to content

ci: ci release-it workflow with self-built images #156

ci: ci release-it workflow with self-built images

ci: ci release-it workflow with self-built images #156

Workflow file for this run

name: Push workflow
on: push
jobs:
# All PR jobs should be listed in required_status_checks https://github.com/rcwbr/release-it-docker/blob/0e9a5bcd8da40cac01686b6312df09bffdee810e/.github/settings.yml#L54
build-docker-images:
name: Build Docker images
runs-on: ubuntu-24.04
permissions:
packages: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: GHCR Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Docker Buildx builder setup
uses: docker/[email protected]
-
id: docker-bake-base
name: Docker Bake base
uses: docker/[email protected]
with:
workdir: base
source: https://github.com/rcwbr/dockerfile-partials.git#main
files: github-cache-bake.hcl
set: |
default.context=cwd://
env:
REGISTRY: ghcr.io/rcwbr/
IMAGE_NAME: release-it-docker
-
id: docker-bake-conventional-changelog
name: Docker Bake conventional-changelog
uses: docker/[email protected]
with:
workdir: conventional-changelog
source: https://github.com/rcwbr/dockerfile-partials.git#main
files: github-cache-bake.hcl, cwd://docker-bake.hcl
set: |
default.context=cwd://
env:
REGISTRY: ghcr.io/rcwbr/
IMAGE_NAME: release-it-docker-conventional-changelog
outputs:
docker-bake-base-metadata: ${{ steps.docker-bake-base.outputs.metadata }}
docker-bake-conventional-changelog-metadata: ${{ steps.docker-bake-conventional-changelog.outputs.metadata }}
release-it-workflow:
name: Release-it workflow
uses: rcwbr/release-it-gh-workflow/.github/workflows/[email protected]
needs: build-docker-images
with:
release-it-image: ${{ fromJSON(needs.build-docker-images.outputs.docker-bake-conventional-changelog-metadata)['default']['image.name'] }}
app-id: 1033419 # release-it-docker CI release-it app
app-environment: Repo release
secrets:
app-secret: ${{ secrets.RELEASE_IT_GITHUB_APP_KEY }} # Secret belonging to the Repo release environment