Skip to content

Commit

Permalink
CI debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
plvines committed Dec 17, 2024
1 parent dcd823f commit 1fc5fe4
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,51 +84,51 @@ jobs:
path: "${{ github.event.repository.name }}-linux-x86_64.tar.gz"
retention-days: 10

# - name: Log in to Container Registry
# if: github.event_name != 'pull_request'
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# with:
# platforms: 'arm64,arm'

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2

# - name: Extract Docker Metadata
# id: meta
# uses: docker/metadata-action@v4
# with:
# images: ghcr.io/${{ github.repository }}/raceboat-compile
# tags: |
# type=ref,event=branch
# type=ref,event=pr
# type=semver,pattern={{raw}}
# type=semver,pattern=v{{major}}.{{minor}}
# type=semver,pattern=v{{major}}

# - name: Configure Docker Caching
# id: cache
# uses: int128/docker-build-cache-config-action@v1
# with:
# image: ghcr.io/${{ github.repository }}/raceboat-compile/cache

# - name: Build and Push raceboat-compile Docker Image
# uses: docker/build-push-action@v4
# with:
# context: raceboat-compile-image
# file: raceboat-compile-image/Dockerfile
# platforms: linux/amd64,linux/arm64
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: ${{ steps.cache.outputs.cache-from }}
# cache-to: ${{ steps.cache.outputs.cache-to }}
- name: Log in to Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,arm'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Extract Docker Metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}/raceboat-compile
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{raw}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
- name: Configure Docker Caching
id: cache
uses: int128/docker-build-cache-config-action@v1
with:
image: ghcr.io/${{ github.repository }}/raceboat-compile/cache

- name: Build and Push raceboat-compile Docker Image
uses: docker/build-push-action@v4
with:
context: raceboat-compile-image
file: raceboat-compile-image/Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: ${{ steps.cache.outputs.cache-from }}
cache-to: ${{ steps.cache.outputs.cache-to }}

# # todo base these on the raceboat image
# test-unit:
Expand Down

0 comments on commit 1fc5fe4

Please sign in to comment.