forked from baetyl/baetyl
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.71 KB
/
image-debug.yml
File metadata and controls
50 lines (48 loc) · 1.71 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
name: image-debug
on:
push:
branches:
- master
jobs:
image:
name: docker build baetyl image
runs-on: ubuntu-latest
steps:
- name: Install deps
run: sudo apt update -y && sudo apt install -y qemu qemu-user-static
- name: Install Docker CE for buildx
run: |
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce
docker -v
- name: Checkout code
uses: actions/checkout@v1
- name: docker login
run: |
docker login -u ${{ secrets.DOCKER_REGISTRY_ID }} -p ${{ secrets.DOCKER_REGISTRY_PASS }}
- name: build and publish baetyl image
run: |
make image PLATFORMS=all XFLAGS='--push --cache-to=type=local,dest=/tmp/baetyl' REGISTRY=baetyltechtest/ BUILD_ARGS=-race
package-linux-debug:
name: packages of linux/amd64 for native mode
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Checkout code
uses: actions/checkout@v1
- id: version
run: |
echo ::set-output name=version::git-$(git rev-parse --short HEAD)-race
- name: build
run: make build BUILD_ARGS=-race
- uses: actions/upload-artifact@v2
with:
name: baetyl_linux-amd64_${{ steps.version.outputs.version }}
path: output/linux/amd64/baetyl/*