Skip to content

Commit 01168a5

Browse files
committed
testing to see if arm/x86 can be same image
1 parent 64e1ed8 commit 01168a5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/publish-ghcr.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ name: Docker Image creator for sassbot experimental
22

33
on:
44
push:
5-
branches: [flexiefae]
5+
branches:
6+
- master
7+
- flexiefae
68

79
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:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Check out code
@@ -32,5 +32,5 @@ jobs:
3232
with:
3333
context: .
3434
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

0 commit comments

Comments
 (0)