-
Notifications
You must be signed in to change notification settings - Fork 12
30 lines (29 loc) · 1.07 KB
/
image-develop.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
name: image-develop
on:
push:
branches:
- master
jobs:
image:
name: docker build images
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 image
run: |
make image PLATFORMS=all XFLAGS='--push --cache-to=type=local,dest=/tmp/main' REGISTRY=baetyltechtest/