-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-linux.yml
More file actions
37 lines (34 loc) · 842 Bytes
/
build-linux.yml
File metadata and controls
37 lines (34 loc) · 842 Bytes
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
matrix:
platform:
- linux/amd64
- linux/arm64
labels:
type: exec
platform: ${platform}
steps:
- name: publish-linux
image: bash
commands:
- export VERSION=$([ -z $CI_COMMIT_TAG ] && echo latest || echo $CI_COMMIT_TAG)-$(sed 's#/#-#g' <<< $CI_SYSTEM_PLATFORM)
- echo $CONTAINER_PASSWORD | podman login $DRYCC_REGISTRY --username $CONTAINER_USERNAME --password-stdin > /dev/null 2>&1
- make clean build publish clean
environment:
SOURCES:
from_secret: sources
CODENAME:
from_secret: codename
DEV_REGISTRY:
from_secret: dev_registry
DRYCC_REGISTRY:
from_secret: drycc_registry
CONTAINER_USERNAME:
from_secret: container_username
CONTAINER_PASSWORD:
from_secret: container_password
when:
event:
- push
- tag
- cron
depends_on:
- test-linux