Skip to content

Publish container images #9

Publish container images

Publish container images #9

Workflow file for this run

name: Publish container images
on:
workflow_dispatch:
env:
REGISTRY: ${{ vars.CONTAINER_REGISTRY }}
OWNER: idemsinternational
jobs:
publish:
strategy:
matrix:
image:
- enketo
- nginx
- secrets
- service
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login $REGISTRY -u $ --password-stdin
- name: Publish
env:
IMAGE_TAG: ${{ env.REGISTRY }}/${{ env.OWNER }}/odk-central-${{ matrix.image }}:latest
run: |
docker build --tag $IMAGE_TAG -f ${{ matrix.image }}.dockerfile .
docker push $IMAGE_TAG