Skip to content

Commit a23bce4

Browse files
authored
docker build in QA actions (#57)
* Update qa.yml Make sure docker image can be build in QA step * Update qa.yml * Update Dockerfile * Update Dockerfile
1 parent bf5bae3 commit a23bce4

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

.github/workflows/qa.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: qa
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
tags-ignore:
6+
- '**'
7+
branches:
8+
- master
9+
pull_request:
610

711

812
jobs:
@@ -22,3 +26,22 @@ jobs:
2226
uses: ludeeus/action-shellcheck@1.1.0
2327
with:
2428
additional_files: 'firecow_cloudflared'
29+
30+
build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Check Out Repo
34+
uses: actions/checkout@v3
35+
36+
- name: Set up QEMU
37+
uses: docker/setup-qemu-action@v2
38+
39+
- name: Set up Docker Buildx
40+
id: buildx
41+
uses: docker/setup-buildx-action@v2
42+
with:
43+
install: true
44+
45+
- name: Build and push
46+
run: |
47+
docker buildx build --platform linux/amd64,linux/arm64 . -t firecow/cloudflared

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM cloudflare/cloudflared:2022.11.0 as cloudflared
22
FROM alpine:3.17.0
33

4-
RUN apk add jq=1.6-r1 --no-cache
4+
RUN apk add jq=1.6-r2 --no-cache
55

66
COPY --from=cloudflared /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
77
COPY --from=cloudflared /usr/local/bin/cloudflared /usr/local/bin

0 commit comments

Comments
 (0)