Skip to content

Commit

Permalink
Merge pull request #52 from slub/determine-build-args
Browse files Browse the repository at this point in the history
Update publish.yml
  • Loading branch information
markusweigelt authored Oct 26, 2022
2 parents bae4e84 + d6a27ef commit 45f2706
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Determine build args
run: |
date -u +"build_date=%Y-%m-%dT%H:%M:%SZ" >> $GITHUB_ENV
echo "vcs_ref=`git -C ./_modules/kitodo-production-docker rev-parse --short HEAD`" >> $GITHUB_ENV
- name: Build the OCR-D Kitodo.Production image from module and deploy to GitHub Container Repository
uses: docker/build-push-action@v3
with:
context: ./_modules/kitodo-production-docker/kitodo
push: true
tags: ${{ env.REGISTRY_PATH }}/kitodo_production:latest
build-args: |
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
VCS_REF=$(git rev-parse --short HEAD)
BUILD_DATE=${{ env.build_date }}
VCS_REF=${{ env.vcs_ref }}
BUILDER_TYPE=git
BUILDER_GIT_COMMIT=ocrd-main
BUILDER_GIT_SOURCE_URL=https://github.com/markusweigelt/kitodo-production/
Expand Down

0 comments on commit 45f2706

Please sign in to comment.