-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.64 KB
/
beta.yml
File metadata and controls
46 lines (45 loc) · 1.64 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
name: Publish Docker for beta
on:
workflow_dispatch:
push:
branches-ignore:
- 'releases/*'
jobs:
docker:
runs-on: ubuntu-latest
environment:
name: Docker
url: https://github.com/createstructure/core-createstructure/pkgs/container/core-createstructure
steps:
- uses: actions/checkout@v2
- name: Get submodules
run: git submodule update --init
- name: Install Docker
run: |
sudo apt-get update; sudo apt-get upgrade
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release \
jq
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
- name: Prepare Docker
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --use
docker buildx inspect --bootstrap
- name: Build and push docker for any platform
run: |
docker buildx build \
-t ghcr.io/createstructure/core-createstructure:beta \
--platform=linux/amd64,linux/arm64 \
--push \
.