Skip to content

Commit 1735ea2

Browse files
authored
Merge pull request #33 from pluralsh/sebastian/prod-3223-kas-cannot-rpc-to-adjacent-pods-in-ha-mode
feat: add GH action to push kas/agentk debug images
2 parents b2a04c5 + 6a07fcd commit 1735ea2

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/ci.yaml

+58
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,61 @@ jobs:
6464
- uses: golangci/[email protected]
6565
with:
6666
version: v1.63.4
67+
publish-debug-docker:
68+
name: Build and push debug kas containers
69+
runs-on: ubuntu-20.04
70+
permissions:
71+
contents: 'read'
72+
id-token: 'write'
73+
packages: 'write'
74+
strategy:
75+
matrix:
76+
image: [kas-debug, agentk-debug]
77+
include:
78+
- image: kas-debug
79+
dockerfile: ./build/docker/kas.debug.Dockerfile
80+
- image: agentk-debug
81+
dockerfile: ./build/docker/agentk.debug.Dockerfile
82+
steps:
83+
- name: Checkout
84+
uses: actions/checkout@v4
85+
with:
86+
fetch-depth: 0
87+
- name: Docker meta
88+
id: meta
89+
uses: docker/metadata-action@v5
90+
with:
91+
images: |
92+
ghcr.io/pluralsh/${{ matrix.image }}
93+
tags: |
94+
type=sha
95+
type=ref,event=pr
96+
type=ref,event=branch
97+
- name: Set up QEMU
98+
uses: docker/setup-qemu-action@v3
99+
- name: Set up Docker Buildx
100+
uses: docker/setup-buildx-action@v3
101+
- name: Login to Container registry
102+
uses: docker/login-action@v3
103+
with:
104+
registry: ghcr.io
105+
username: ${{ github.repository_owner }}
106+
password: ${{ secrets.GITHUB_TOKEN }}
107+
- name: Login to Docker
108+
uses: docker/login-action@v3
109+
with:
110+
username: mjgpluralsh
111+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
112+
- name: Build and push
113+
uses: docker/build-push-action@v5
114+
with:
115+
context: "."
116+
file: "${{ matrix.dockerfile }}"
117+
push: true
118+
tags: ${{ steps.meta.outputs.tags }}
119+
labels: ${{ steps.meta.outputs.labels }}
120+
platforms: linux/amd64,linux/arm64
121+
cache-from: type=gha
122+
cache-to: type=gha,mode=max
123+
build-args: |
124+
GIT_COMMIT=${{ github.sha }}

0 commit comments

Comments
 (0)