Skip to content

Commit

Permalink
testing to see if arm/x86 can be same image
Browse files Browse the repository at this point in the history
  • Loading branch information
Bombg committed Oct 12, 2024
1 parent 64e1ed8 commit 01168a5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/publish-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: Docker Image creator for sassbot experimental

on:
push:
branches: [flexiefae]
branches:
- master
- flexiefae

jobs:
build-and-push-x86:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build and push image
run: |
docker login --username bombg --password ${{ secrets.GH_PAT }} ghcr.io
docker build . --tag ghcr.io/bombg/sassbot:experimental
docker push ghcr.io/bombg/sassbot:experimental
build-and-push-arm:
include:
- if: github.ref_name == 'master'
env:
- IMAGEVER="latest"
- if: github.ref_name == 'flexiefae'
env:
- IMAGEVER="experimental"
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand All @@ -32,5 +32,5 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/bombg/sassbot:experimental-arm
platforms: linux/arm64
tags: ghcr.io/bombg/sassbot:${IMAGEVER}
platforms: linux/arm64, linux/amd64

0 comments on commit 01168a5

Please sign in to comment.