Update publish-image.yml #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |