-
Notifications
You must be signed in to change notification settings - Fork 78
43 lines (40 loc) · 1.25 KB
/
ci.yml
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
name: CI
on:
push:
permissions:
contents: read
jobs:
build-stack:
runs-on: ubuntu-22.04
env:
STACK: heroku-${{ matrix.stack-version }}
STACK_VERSION: "${{ matrix.stack-version }}"
DOCKER_HUB_TOKEN: "${{ secrets.DOCKER_HUB_TOKEN }}"
DOCKER_HUB_USERNAME: "${{ secrets.DOCKER_HUB_USERNAME }}"
MANIFEST_APP_TOKEN: "${{ secrets.MANIFEST_APP_TOKEN }}"
MANIFEST_APP_URL: "${{ secrets.MANIFEST_APP_URL }}"
strategy:
fail-fast: false
matrix:
stack-version: ["24"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build images
run: bin/build.sh $STACK_VERSION
- name: Check that the generated files are in sync
run: |-
status="$(git status --porcelain)"
if [[ -n "$status" ]]; then
echo "Generated files differ from checked-in versions! Run bin/build.sh to regenerate them locally."
echo -e "\nChanged files:\n${status}\n"
git diff
exit 1
fi
- name: Publish to image registries
run: |-
docker buildx create --use
bin/publish-to-registries.sh
- name: Unpublish temp tags from this run
run: bin/unpublish-tags.sh
if: always()