Skip to content

Commit

Permalink
Test build with build dep tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed May 13, 2024
1 parent 484d09c commit c3742a8
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/build-publish-fenics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
- name: Extract metadata (tags, labels) for Docker (testing)
id: meta-testing
uses: docker/metadata-action@v5
with:
labels: |
org.opencontainers.image.title=${{ github.event.inputs.image_name }}
org.opencontainers.image.description=${{ github.event.inputs.image_description }}
images: ${{ github.GITHUB_REPOSITORY }}/${{ github.event.inputs.image_name }}
tags: |
type=raw,value=${{ github.event.inputs.release_tag }}
org.opencontainers.image.title=${{ github.run_id }}-${{ github.run_attempt }}
org.opencontainers.image.description="Test run"
images: test-image-${{ github.run_id }}-${{ github.run_attempt }}

- name: Build AMD docker image
uses: docker/build-push-action@v5
Expand All @@ -71,10 +68,22 @@ jobs:
load: true
platforms: linux/amd64 #,linux/arm64
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.inputs.image_name }}:${{ github.event.inputs.release_tag }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta-testing.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.inputs.image_name }}:${{ github.event.inputs.release_tag }}
cache-to: type=inline

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
labels: |
org.opencontainers.image.title=${{ github.event.inputs.image_name }}
org.opencontainers.image.description=${{ github.event.inputs.image_description }}
images: ${{ github.GITHUB_REPOSITORY }}/${{ github.event.inputs.image_name }}
tags: |
type=raw,value=${{ github.event.inputs.release_tag }}
- name: Trigger circleci build for ARM
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
Expand Down

0 comments on commit c3742a8

Please sign in to comment.