-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (66 loc) · 2.29 KB
/
Copy pathoffline-bundle.yml
File metadata and controls
78 lines (66 loc) · 2.29 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Offline Docker Bundle
on:
workflow_dispatch:
inputs:
ref:
description: 'Git ref to package (branch, tag, SHA)'
required: true
default: 'timescale-sync'
release:
types: [published]
push:
branches: [ timescale-sync, main, dev ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
package-offline:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref || github.ref }}
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Pull all required images
run: |
docker pull ghcr.io/western-formula-racing/data-acquisition/universal-telemetry:latest
docker pull ghcr.io/western-formula-racing/data-acquisition/pecan:latest
docker pull timescale/timescaledb:latest-pg16
docker pull redis:8.2
docker pull bluenviron/mediamtx:latest
docker pull grafana/grafana:latest
- name: Save images as tarball
run: |
cd universal-telemetry-software/deploy
docker save \
ghcr.io/western-formula-racing/data-acquisition/universal-telemetry:latest \
ghcr.io/western-formula-racing/data-acquisition/pecan:latest \
timescale/timescaledb:latest-pg16 \
redis:8.2 \
bluenviron/mediamtx:latest \
grafana/grafana:latest \
-o offline/wfr-docker-images.tar
- name: Upload as workflow artifact
uses: actions/upload-artifact@v4
with:
name: wfr-docker-images-offline
path: universal-telemetry-software/deploy/offline/wfr-docker-images.tar
retention-days: 30
- name: Upload to Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: universal-telemetry-software/deploy/offline/wfr-docker-images.tar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}