Skip to content

Corrected error code. #21

Corrected error code.

Corrected error code. #21

Workflow file for this run

name: 'Publish nodenorm-loading to GitHub Packages'
on:
push:
release:
types: [published]
env:
REGISTRY: ghcr.io
jobs:
push_to_registry:
name: Push Docker image for NodeNorm loading to GitHub Packages tagged with "latest" and version number.
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images:
ghcr.io/${{ github.repository }}-data-loading
# This will leave authentication information, but that shouldn't be relevant here.
- name: Login to ghcr
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Setting up Docker Buildx with docker-container driver is required
# at the moment to be able to use a subdirectory with Git context
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:data-loading"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: BRANCH_NAME=${{ github.event.release.target_commitish }}