Skip to content

Commit f45dce7

Browse files
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # centralmind/values.yaml
2 parents 1cd5c05 + 09edcb5 commit f45dce7

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build Gateway
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
tags: [ 'v*.*.*' ]
7+
workflow_dispatch:
8+
9+
env:
10+
REGISTRY: ghcr.io
11+
IMAGE_NAME: ${{ github.repository }}/gateway
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Clone gateway repository
25+
run: |
26+
git clone https://github.com/centralmind/gateway.git /tmp/gateway
27+
28+
- name: Remove TARGETARCH default from Dockerfile.build
29+
run: |
30+
sed -i '/^ARG TARGETARCH=amd64$/d' /tmp/gateway/Dockerfile.build
31+
32+
- name: Set up QEMU
33+
uses: docker/setup-qemu-action@v3
34+
35+
- name: Set up Docker Buildx
36+
uses: docker/setup-buildx-action@v3
37+
38+
- name: Log in to Container Registry
39+
uses: docker/login-action@v3
40+
with:
41+
registry: ${{ env.REGISTRY }}
42+
username: ${{ github.actor }}
43+
password: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: Extract metadata
46+
id: meta
47+
uses: docker/metadata-action@v5
48+
with:
49+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
50+
tags: |
51+
type=ref,event=branch
52+
type=ref,event=tag
53+
type=sha,prefix={{branch}}-
54+
type=raw,value=latest,enable={{is_default_branch}}
55+
56+
- name: Build and push Docker image
57+
uses: docker/build-push-action@v5
58+
with:
59+
context: /tmp/gateway
60+
file: /tmp/gateway/Dockerfile.build
61+
platforms: linux/amd64,linux/arm64
62+
push: true
63+
tags: ${{ steps.meta.outputs.tags }}
64+
labels: ${{ steps.meta.outputs.labels }}
65+
cache-from: type=gha
66+
cache-to: type=gha,mode=max

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.aider*

0 commit comments

Comments
 (0)