parent
2f5955333d
commit
b222c0924a
|
@ -2,14 +2,12 @@ name: Build & Push CKAN-Spatial Docker image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Trigger the workflow after build.yml,
|
# Trigger the workflow after build.yml,
|
||||||
# but only for the master branch and tags
|
# but only for the master and ckan-*.*.* branches
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["Build CKAN Docker auxiliary images"]
|
workflows: ["Build CKAN Docker auxiliary images"]
|
||||||
branches: [master]
|
branches: ['master', 'ckan-*.*.*']
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
tags:
|
|
||||||
- 'ckan-*.*.*'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
@ -19,13 +17,13 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
@ -42,12 +40,10 @@ jobs:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
- name: CKAN Build and push
|
- name: CKAN Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
${{ steps.meta.outputs.tags }}
|
|
||||||
${{ startsWith(github.ref, 'refs/tags/ckan-') && replace(github.ref, 'refs/tags/', '') }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
context: ./ckan
|
context: ./ckan
|
||||||
file: ./ckan/Dockerfile
|
file: ./ckan/Dockerfile
|
Loading…
Reference in New Issue