File tree 2 files changed +6
-42
lines changed 2 files changed +6
-42
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ name: pr
2
2
3
3
on : [pull_request]
4
4
5
- env :
6
- IMAGE : openpolicyagent/conftest
7
- PLATFORMS : linux/amd64,linux/arm64
8
-
9
5
permissions :
10
6
actions : read
11
7
checks : none
74
70
- name : build
75
71
run : make build
76
72
77
- - name : setup docker buildx
78
- run : docker buildx create --name conftestbuild --use
79
-
80
- - name : Build Docker image
81
- uses : docker/build-push-action@v6
82
- with :
83
- context : .
84
- push : false
85
- tags : |
86
- ${{ env.IMAGE }}:latest
87
- platforms : ${{ env.PLATFORMS }}
88
-
89
73
- name : unit test
90
74
run : make test
91
75
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- ' v*'
7
- env :
8
- IMAGE : openpolicyagent/conftest
9
- PLATFORMS : linux/amd64,linux/arm64
10
-
7
+
11
8
jobs :
12
9
release :
13
10
runs-on : ubuntu-latest
@@ -39,27 +36,10 @@ jobs:
39
36
- name : setup docker buildx
40
37
run : docker buildx create --name conftestbuild --use
41
38
42
- - name : Build and push Docker image
43
- uses : docker/build-push-action@v6
44
- with :
45
- context : .
46
- push : true
47
- build-args : |
48
- VERSION=${{ steps.get-version.outputs.VERSION }}
49
- tags : |
50
- ${{ env.IMAGE }}:${{ env.VERSION }}
51
- ${{ env.IMAGE }}:latest
52
- platforms : ${{ env.PLATFORMS }}
53
-
54
- - name : Build and push examples image
55
- uses : docker/build-push-action@v6
56
- with :
57
- context : .
58
- push : true
59
- target : examples
60
- tags : |
61
- ${{ env.IMAGE }}:examples
62
- platforms : ${{ env.PLATFORMS }}
39
+ - name : push images
40
+ env :
41
+ VERSION : ${{ steps.get-version.outputs.VERSION }}
42
+ run : make push TAG=$VERSION
63
43
64
44
- name : setup go
65
45
uses : actions/setup-go@v4
72
52
args : release --clean
73
53
version : " ~> v1"
74
54
env :
75
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments