Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Adding workflow to build docker images to test
Browse files Browse the repository at this point in the history
  • Loading branch information
misilot committed Oct 18, 2024
1 parent c3a01da commit 7393ae0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# DSpace Handle Server Docker image build for hub.docker.com
name: Docker images

# Run this Build for all pushes to 'master' or tagged releases.
# Also run for PRs to ensure PR doesn't break Docker build process
# NOTE: uses "reusable-docker-build.yml" to actually build each of the Docker images.
on:
push:
branches:
- main
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
###################################################################
# Build/Push the 'kstatelibraries/krex-dspace-handleserver' image.
###################################################################
dspace-handle-server:
# Ensure this job never runs on forked repos. It's only executed for 'kstatelibraries/docker-dspace-handle'
if: github.repository == 'kstatelibraries/docker-dspace-handle'
uses: kstatelibraries/kstatelibraries/.github/workflows/reusable-docker-build.yml@main
with:
build_id: dspace-handle-server
image_name: kstatelibraries/krex-dspace-handleserver:test
dockerfile_path: ./Dockerfile
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_ACCESS_TOKEN: ${{ secrets.DOCKER_ACCESS_TOKEN }}

0 comments on commit 7393ae0

Please sign in to comment.