-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.7 KB
/
release.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release
on:
push:
tags:
- 'v*'
jobs:
push:
name: Push
runs-on: ubuntu-22.04
steps:
- name: Parse Event
id: event
run: |
echo "tag=$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)" >> "$GITHUB_OUTPUT"
- name: Checkout
uses: actions/checkout@v4
- name: Install Global Pack
uses: buildpacks/github-actions/setup-pack@main
with:
pack-version: 0.35.1
- name: Docker login
uses: docker/login-action@v3
with:
registry: r.planetary-quantum.com
username: ${{ secrets.QUANTUM_REGISTRY_USERNAME }}
password: ${{ secrets.QUANTUM_REGISTRY_PASSWORD }}
- uses: docker/setup-buildx-action@v3
- id: meta-run
uses: docker/metadata-action@v5
with:
images: |
r.planetary-quantum.com/runway-public/runway-runimage
tags: |
type=semver,prefix=jammy-full-,pattern={{version}}
type=raw,value=jammy-full
- name: Build and push run-image
uses: docker/build-push-action@v6
with:
context: runimage
cache-from: r.planetary-quantum.com/runway-public/runway-runimage:jammy-full
push: true
tags: ${{ steps.meta-run.outputs.tags }}
- name: Create Builder Image
run: |
make build-builder
- name: Push builder
env:
IMG: r.planetary-quantum.com/runway-public/runway-buildpack-stack
run: |
docker tag builder "${IMG}:jammy-full"
docker tag builder "${IMG}:jammy-full-${{ steps.event.outputs.tag }}"
docker push "${IMG}:jammy-full"
docker push "${IMG}:jammy-full-${{ steps.event.outputs.tag }}"
- uses: softprops/action-gh-release@v2