Skip to content

Commit

Permalink
Update workflow and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
markusweigelt committed Nov 21, 2024
1 parent 205e74f commit a7890f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Publish DFG-Viewer

on:
push:
branches: [ "master" ]
workflow_dispatch: # run manually

env:
Expand All @@ -19,25 +21,31 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4


- name: Checkout DFG-Viewer repository
uses: actions/checkout@v4
with:
repository: ${{ env.GIT_OWNER }}/${{ env.GIT_REPO }}
repository: markusweigelt/dfg-viewer
ref: update-typo12
path: ./Docker/extensions/dfg-viewer
path: ./Docker/build/extensions/dfg-viewer

- name: Checkout Kitodo.Presentation repository
uses: actions/checkout@v4
with:
repository: kitodo/kitodo-presentation
path: ./Docker/extensions/kitodo-presentation
path: ./Docker/build/extensions/kitodo-presentation

- name: Checkout SLUB Digital Collections repository
uses: actions/checkout@v4
with:
repository: ${{ env.GIT_OWNER }}/slub_digitalcollections
repository: markusweigelt/slub_digitalcollections
ref: update-typo12
path: ./Docker/extensions/slub_digitalcollections
path: ./Docker/build/extensions/slub_digitalcollections

- name: Prepare environment
run: |
# Rename example .env file
mv ./Docker/.env.example ./Docker/.env
# Activate cache export feature to reduce build time of images
- name: Set up Docker Buildx
Expand All @@ -53,12 +61,12 @@ jobs:
- name: Determine build args
run: |
date -u +"build_date=%Y-%m-%dT%H:%M:%SZ" >> $GITHUB_ENV
echo "vcs_ref=`git rev-parse --short HEAD`" >> $GITHUB_ENV
echo "vcs_ref=`git -C ./Docker/build/extensions/dfg-viewer rev-parse HEAD`" >> $GITHUB_ENV
- name: Build the DFG-Viewer image from module and deploy to GitHub Container Repository
uses: docker/build-push-action@v6
with:
context: ./Docker
context: ./Docker/build
push: true
tags: ${{ env.REGISTRY_PATH }}:${{ env.IMAGE_TAG }}
build-args: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Documentation-GENERATED-temp/
public/
vendor/
composer.lock
.env
Docker/build/extensions
!Docker/build/extensions/.gitkeep

0 comments on commit a7890f6

Please sign in to comment.