mirror of
https://github.com/dathere/ckan_geoconnex_bulk_runner.git
synced 2026-07-05 15:12:20 +00:00
ci: add container publish workflow
This commit is contained in:
parent
c45ecd0fa9
commit
235863b84c
1 changed files with 29 additions and 0 deletions
29
.github/workflows/container.yml
vendored
Normal file
29
.github/workflows/container.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Publish bulk loader Docker container
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_and_push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: ./bulk_loader
|
||||
file: ./bulk_loader/Dockerfile
|
||||
push: true
|
||||
tags: ghcr.io/dathere/ckan_geoconnex_bulk_runner:latest
|
||||
cache-from: type=gha,scope=ckan_geoconnex_bulk_runner
|
||||
platforms: linux/amd64
|
||||
cache-to: type=gha,mode=max,scope=ckan_geoconnex_bulk_runner
|
||||
Loading…
Add table
Add a link
Reference in a new issue