-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (67 loc) · 2.19 KB
/
containers.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
66
67
68
69
70
71
72
73
74
75
76
77
name: containers
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup eli
uses: alis-is/setup-eli@v1
- name: test tezbox
run: |
eli ./tests/all.lua
- name: prep
id: prep
run: |
VERSION=$(eli -e "info = require'src.version-info'; io.write(info.VERSION)")
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
if git tag -l "$VERSION" | grep "$VERSION"; then
echo "Version $VERSION already exists";
else
echo "Found new version - $VERSION"
echo "NEEDS_RELEASE=true" >> $GITHUB_OUTPUT
fi
echo "CURRENT_DATE=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
- name: build tezbox
run: |
export ELI_PATH=$PWD/eli
eli ./build/build.lua
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: build tezos v20.3
uses: docker/build-push-action@v5
with:
file: containers/tezos/Containerfile
context: .
platforms: linux/amd64,linux/arm64
build-args: |
PROTOCOLS=PsParisC
IMAGE_TAG=octez-v20.3
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
tags: ghcr.io/tez-capital/tezbox:tezos-v20.3.${{steps.prep.outputs.CURRENT_DATE}},ghcr.io/tez-capital/tezbox:tezos-v20.3,ghcr.io/tez-capital/tezbox:latest
push: true
provenance: false
- name: build tezos v21.0-rc4
uses: docker/build-push-action@v5
with:
file: containers/tzc-tezos/Containerfile
context: .
platforms: linux/amd64,linux/arm64
build-args: |
PROTOCOLS=PsParisC,PsQEna42
IMAGE_TAG=latest
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
tags: ghcr.io/tez-capital/tezbox:tezos-v21.0-rc4.${{steps.prep.outputs.CURRENT_DATE}},ghcr.io/tez-capital/tezbox:tezos-v21.0-rc4
push: true
provenance: false