Skip to content

Commit

Permalink
Fix metadata actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez committed Sep 15, 2023
1 parent 9b5b4ee commit 0744939
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
branches:
- main
- stable
- latest

env:
Expand Down Expand Up @@ -35,17 +34,18 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ matrix.image }}
labels: |
org.opencontainers.image.documentation=https://github.com/${{ github.repository }}/blob/${{ env.BRANCH }}/README.md
org.opencontainers.image.version=${{ env.BRANCH }}
- name: Build to test
uses: docker/build-push-action@v5
id: docker-push
with:
push: false
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH }}
labels: |
${{ steps.meta.outputs.labels }}
org.opencontainers.image.documentation=https://github.com/${{ github.repository }}/blob/${{ env.BRANCH }}/README.md
labels: ${{ steps.meta.outputs.labels }}
context: ${{ env.CONTEXT }}
file: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }}

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Build and push ckan-pycsw image

on:
push:
branches:
- main
pull_request:
types:
- closed
branches:
- main
- stable
- latest

env:
Expand Down Expand Up @@ -51,15 +53,16 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}
labels: |
org.opencontainers.image.documentation=https://github.com/${{ github.repository }}/blob/${{ env.BRANCH }}/README.md
org.opencontainers.image.version=${{ env.BRANCH }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ matrix.tag }}
labels: |
${{ steps.meta.outputs.labels }}
org.opencontainers.image.documentation=https://github.com/${{ github.repository }}/blob/${{ env.BRANCH }}/README.md
labels: ${{ steps.meta.outputs.labels }}
context: ${{ env.CONTEXT }}
file: ${{ matrix.dockerfile }}

Expand Down

0 comments on commit 0744939

Please sign in to comment.