Skip to content

Commit 2e14aa4

Browse files
committed
use arc for release, clean up
1 parent b33ab62 commit 2e14aa4

4 files changed

Lines changed: 52 additions & 63 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Image Remote
1+
name: Build Containers
22

33
on:
44
push:

.github/workflows/build-docker.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release Containers
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
env:
9+
GOGC: 50
10+
11+
jobs:
12+
main:
13+
runs-on: arc-runner-set-na
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- name: Log in to GitHub Docker Registry
18+
uses: docker/login-action@v3
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
logout: true
24+
25+
- name: Create Docker amd64 context
26+
run: |
27+
docker context create docker00 --docker \
28+
"host=tcp://docker.mouf.io:2376,ca=/certs/docker00/ca-cert.pem,cert=/certs/docker00/client-cert.pem,key=/certs/docker00/client-key.pem"
29+
30+
- name: Create Docker arm64 context
31+
run: |
32+
docker context create docker01 --docker \
33+
"host=tcp://docker1.mouf.io:2376,ca=/certs/docker01/ca-cert.pem,cert=/certs/docker01/client-cert.pem,key=/certs/docker01/client-key.pem"
34+
35+
- name: Set up Docker Buildx
36+
uses: docker/setup-buildx-action@v3
37+
with:
38+
endpoint: docker00
39+
platforms: linux/amd64
40+
append: |
41+
- name: docker01
42+
platforms: linux/arm64
43+
endpoint: docker01
44+
45+
- name: Build and push
46+
id: docker_build
47+
uses: docker/build-push-action@v6
48+
with:
49+
platforms: linux/amd64,linux/arm64
50+
push: true
51+
tags: ghcr.io/${{ github.repository }}/cert-manager-webhook-namesilo:${{ github.ref_name }}

.github/workflows/release-docker.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)