Skip to content

Update publish-image.yml #62

Update publish-image.yml

Update publish-image.yml #62

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set current date
id: date
run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag crl/dicom-tools:${{ steps.date.outputs.NOW }}
docker save crl/dicom-tools:${{ steps.date.outputs.NOW }} -o crl-dicom-tools-${{ steps.date.outputs.NOW }}.tar
- uses: actions/upload-artifact@v4
with:
name: crl-dicom-tools-container
path: crl-dicom-tools-${{ steps.date.outputs.NOW }}.tar