Skip to content

Commit

Permalink
chore: add a GitHub workflow to just build images
Browse files Browse the repository at this point in the history
Adding this to bypass sometimes flaky e2e tests (we'll work on these
too).
  • Loading branch information
djwhitt committed Nov 15, 2024
1 parent 0067d40 commit c5f2097
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-core-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build core image

on: [workflow_dispatch]

jobs:
images:
runs-on: ubuntu-latest

needs: test
if: github.ref == 'refs/heads/develop'

permissions:
contents: read
packages: write

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3

- name: Log in to the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push container image to GitHub Container Registry
uses: docker/build-push-action@v5
with:
labels: |
org.opencontainers.image.revision=${{ github.sha }}
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/ar-io/ar-io-core:latest
ghcr.io/ar-io/ar-io-core:${{ github.sha }}

0 comments on commit c5f2097

Please sign in to comment.