-
Notifications
You must be signed in to change notification settings - Fork 23
43 lines (39 loc) · 1.19 KB
/
build.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
name: 🏗️ Build
on:
push:
branches:
- '**'
jobs:
test:
name: Remote Docker Build Demo
runs-on: ubuntu-latest
steps:
- name: ⬇️ Check out code into the Go module directory
uses: actions/checkout@v4
- name: Docker test
run: |
# Github Action Docker version
docker version
docker ps
# Remote Docker
export DOCKER_HOST=tcp://88.99.211.150:2375
docker ps
# docker build --platform linux/amd64 -t yyy -f docker/Dockerfile.multistage .
# Remote Docker Buildx builders
docker buildx create --name builder-remote --driver docker-container --use tcp://88.99.211.150:2375
docker buildx inspect --bootstrap --builder builder-remote
docker builder ls
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
endpoint: tcp://88.99.211.150:2375
- name: Build Capacitor image
id: build
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile.multistage
platforms: linux/amd64 #,linux/arm64/v8
push: false
tags: |
ghcr.io/gimlet-io/capacitor:build