Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezzfelipe committed Oct 31, 2024
1 parent 23bc907 commit a5406f8
Showing 1 changed file with 10 additions and 43 deletions.
53 changes: 10 additions & 43 deletions .github/workflows/sidecar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,16 @@ on:

jobs:
build-images:
continue-on-error: true

strategy:
fail-fast: false
matrix:
include:
- release_for: Linux-x86_64
build_on: ubuntu-latest
suffix: amd

- release_for: Linux-arm64
build_on: ubuntu-arm
suffix: arm

runs-on: ${{ matrix.build_on }}
- context: .
file: docker/dockerfile.sidecar
endpoint: demeter-run/doom-patrol-metrics-exporter

continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

Expand All @@ -42,36 +37,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: docker/dockerfile.sidecar
context: ${{ matrix.context }}
file: ${{ matrix.file }}
platforms: linux/amd64
push: true
tags: ghcr.io/demeter-run/doom-patrol-metrics-exporter:${{ github.sha }}-${{ matrix.suffix }}

build-manifest:
needs:
- build-images
runs-on: ubuntu-latest

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

- uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/demeter-run/doom-patrol-metrics-exporter

- uses: int128/docker-manifest-create-action@v2
id: build
with:
index-annotations: ${{ steps.metadata.outputs.labels }}
tags: |
ghcr.io/demeter-run/doom-patrol-metrics-exporter:${{ github.sha }}
ghcr.io/demeter-run/doom-patrol-metrics-exporter
sources: |
ghcr.io/demeter-run/doom-patrol-metrics-exporter:${{ github.sha }}-amd
ghcr.io/demeter-run/doom-patrol-metrics-exporter:${{ github.sha }}-arm
tags: ghcr.io/${{ matrix.endpoint }},ghcr.io/${{ matrix.endpoint }}:${{ github.sha }}

0 comments on commit a5406f8

Please sign in to comment.