-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (51 loc) · 1.41 KB
/
build_containers.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
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Build and publish the Containers
on:
push:
branches:
- build_workflow
jobs:
build:
runs-on: ubuntu-latest
env:
ROOTPATH: /home/runner/work/CYBERTEC-pg-container/CYBERTEC-pg-container
BASEOS: rocky9
BUILD: 1
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Build base$
id: build-base
run: |
make base
docker save -o base.tar cybertec-pg-container/base:$BASEOS-$BUILD
- name: Upload Containers
uses: actions/upload-artifact@v2
with:
name: docker-images
path: |
base.tar
tag:
runs-on: ubuntu-latest
env:
IMAGEPRAEFIX: docker.io/cybertecpostgresql/cybertec-pg-container-dev
BASEOS: rocky9
BUILD: 1
PGVERSION: 16.3
TYPE: dev
needs: build
steps:
- name: Download Containers
uses: actions/download-artifact@v2
with:
name: docker-images
- name: Load base image
run: docker load -i base.tar
- name: Tag and push container1
run: |
docker tag cybertec-pg-container/base:$BASEOS-$BUILD $IMAGEPRAEFIX/base:$BASEOS-$BUILD-$TYPE