From 133fe0a8ff0fd4cfb292cbd307dae92d73f3df32 Mon Sep 17 00:00:00 2001 From: Joshua Gottlieb Date: Fri, 11 Oct 2024 18:22:52 -0500 Subject: [PATCH] adding workflow/action to publish to ghcr --- .github/workflows/publish-ghcr.yaml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/publish-ghcr.yaml diff --git a/.github/workflows/publish-ghcr.yaml b/.github/workflows/publish-ghcr.yaml new file mode 100644 index 0000000..4cb84e2 --- /dev/null +++ b/.github/workflows/publish-ghcr.yaml @@ -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 \ No newline at end of file