Skip to content

Commit

Permalink
chore (docker-publish-ckan): add workflow to build ckan image
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-gesinn committed Nov 11, 2024
1 parent 667f48f commit cb9d255
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docker-publish-ckan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish docker image

on:
release:
types: [created]
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: tibhannover/ckan-ckan

jobs:
build:

runs-on: ubuntu-22.04

permissions:
contents: write
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ./ckan/context
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true

0 comments on commit cb9d255

Please sign in to comment.