Skip to content

Commit 2f2eda5

Browse files
authored
chore(ci): use buildkit=1 and add ci (#15)
- update to use docker_buildkit=1 and add ci Signed-off-by: Cryptophobia <[email protected]>
1 parent cda3656 commit 2f2eda5

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.github/workflows/build-action.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build
2+
# This workflow is triggered on pushes to the repository.
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: build-job
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Slack Notify Build
11+
continue-on-error: true
12+
uses: voxmedia/[email protected]
13+
id: slack
14+
with:
15+
channel: ci
16+
status: STARTED
17+
color: good
18+
env:
19+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
20+
- name: Install Go 1.16.x
21+
uses: actions/setup-go@v2
22+
with:
23+
go-version: 1.16.x
24+
- name: Checkout repo
25+
uses: actions/checkout@v2
26+
- name: Test
27+
run: make test
28+
- name: Docker Build
29+
run: make docker-build
30+
- name: Notify Slack Success
31+
continue-on-error: true
32+
if: success()
33+
env:
34+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
35+
uses: voxmedia/[email protected]
36+
with:
37+
message_id: ${{ steps.slack.outputs.message_id }}
38+
channel: ci
39+
status: SUCCESS
40+
color: good
41+
- name: Notify Slack Fail
42+
continue-on-error: true
43+
if: failure()
44+
env:
45+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
46+
uses: voxmedia/[email protected]
47+
with:
48+
message_id: ${{ steps.slack.outputs.message_id }}
49+
channel: ci
50+
status: FAILED
51+
color: danger

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build: docker-build
1717
push: docker-push
1818

1919
docker-build:
20-
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
20+
DOCKER_BUILDKIT=1 docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
2121
docker tag ${IMAGE} ${MUTABLE_IMAGE}
2222

2323
clean: check-docker

0 commit comments

Comments
 (0)