File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,19 @@ name: Docker Image creator for sassbot experimental
2
2
3
3
on :
4
4
push :
5
- branches : [flexiefae]
5
+ branches :
6
+ - master
7
+ - flexiefae
6
8
7
9
jobs :
8
- build-and-push-x86 :
9
- runs-on : ubuntu-latest
10
- steps :
11
- - uses : actions/checkout@v3
12
- - name : build and push image
13
- run : |
14
- docker login --username bombg --password ${{ secrets.GH_PAT }} ghcr.io
15
- docker build . --tag ghcr.io/bombg/sassbot:experimental
16
- docker push ghcr.io/bombg/sassbot:experimental
17
- build-and-push-arm :
10
+ include :
11
+ - if : github.ref_name == 'master'
12
+ env :
13
+ - IMAGEVER="latest"
14
+ - if : github.ref_name == 'flexiefae'
15
+ env :
16
+ - IMAGEVER="experimental"
17
+ build-and-push :
18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : Check out code
32
32
with :
33
33
context : .
34
34
push : true
35
- tags : ghcr.io/bombg/sassbot:experimental-arm
36
- platforms : linux/arm64
35
+ tags : ghcr.io/bombg/sassbot:${IMAGEVER}
36
+ platforms : linux/arm64, linux/amd64
You can’t perform that action at this time.
0 commit comments