-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (60 loc) · 2.29 KB
/
push-workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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#0.1.0
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#0.1.0
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