Skip to content

Initial downstream THREDDS image with netCDF-Java patch framework #1

Initial downstream THREDDS image with netCDF-Java patch framework

Initial downstream THREDDS image with netCDF-Java patch framework #1

Workflow file for this run

name: Publish image
on:
push:
tags: ['v*']
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ternaustralia/thredds-swiftfix
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Read versions
id: versions
shell: bash
run: |
set -a
source versions.env
set +a
echo "base=$THREDDS_BASE_IMAGE" >> "$GITHUB_OUTPUT"
echo "commit=$NETCDF_JAVA_COMMIT" >> "$GITHUB_OUTPUT"
echo "version=$IMAGE_VERSION" >> "$GITHUB_OUTPUT"
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/ternaustralia/thredds-swiftfix
tags: |
type=ref,event=tag
type=sha,prefix=sha-
- id: build
uses: docker/build-push-action@v6
with:
context: .
file: Containerfile
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
THREDDS_BASE_IMAGE=${{ steps.versions.outputs.base }}
NETCDF_JAVA_COMMIT=${{ steps.versions.outputs.commit }}
IMAGE_VERSION=${{ steps.versions.outputs.version }}
SOURCE_URL=${{ github.server_url }}/${{ github.repository }}
VCS_REF=${{ github.sha }}
BUILD_DATE=${{ github.event.repository.updated_at }}
- name: Show digest
run: echo 'ghcr.io/ternaustralia/thredds-swiftfix@${{ steps.build.outputs.digest }}'