File tree 2 files changed +52
-1
lines changed
2 files changed +52
-1
lines changed Original file line number Diff line number Diff line change
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
+
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
+
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
+
47
+ with :
48
+ message_id : ${{ steps.slack.outputs.message_id }}
49
+ channel : ci
50
+ status : FAILED
51
+ color : danger
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ build: docker-build
17
17
push : docker-push
18
18
19
19
docker-build :
20
- docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
20
+ DOCKER_BUILDKIT=1 docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
21
21
docker tag ${IMAGE} ${MUTABLE_IMAGE}
22
22
23
23
clean : check-docker
You can’t perform that action at this time.
0 commit comments