Skip to content

Commit

Permalink
adding workflow/action to publish to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
Bombg committed Oct 11, 2024
1 parent 55e9802 commit 133fe0a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish-ghcr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docker Image creator for sassbot latest

on:
push:
branches: [master]

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:latest
docker push ghcr.io/bombg/sassbot:latest
build-and-push-arm:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: bombg
password: ${{ secrets.GH_PAT }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/sassbot-arm:latest
platforms: linux/arm/v7

0 comments on commit 133fe0a

Please sign in to comment.