Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker.yml #502

Merged
merged 1 commit into from
Jan 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 27 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,28 @@ jobs:
# Use tags / labels provided by 'docker/metadata-action' above
tags: ${{ steps.meta_build_deps.outputs.tags }}
labels: ${{ steps.meta_build_deps.outputs.labels }}

####################################################
# Build/Push the 'dataquest/dspace-dependencies' image
####################################################
dspace-dependencies:
# Ensure this job never runs on forked repos. It's only executed for 'dataquest/dspace'
if: github.repository == 'dataquest-dev/dspace'
uses: ./.github/workflows/reusable-docker-build.yml
with:
build_id: dspace-dependencies
image_name: dataquest/dspace-dependencies
dockerfile_path: ./Dockerfile.dependencies
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_ACCESS_TOKEN: ${{ secrets.DOCKER_ACCESS_TOKEN }}

#######################################
# Build/Push the 'dataquest/dspace' image
#######################################
dspace:
# Ensure this job never runs on forked repos. It's only executed for 'dataquest/dspace'
if: github.repository == 'dataquest-dev/dspace'
# Must run after 'dspace-dependencies' job above
needs: dspace-dependencies
runs-on: ubuntu-latest
Expand Down Expand Up @@ -169,6 +186,8 @@ jobs:
# Build/Push the 'dataquest/dspace' image ('-test' tag)
#############################################################
dspace-test:
# Ensure this job never runs on forked repos. It's only executed for 'dataquest/dspace'
if: github.repository == 'dataquest-dev/dspace'
# Must run after 'dspace-dependencies' job above
needs: dspace-dependencies
runs-on: ubuntu-latest
Expand Down Expand Up @@ -225,7 +244,7 @@ jobs:
# Build/Push the 'dataquest/dspace-cli' image
###########################################
dspace-cli:
# Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace'
# Ensure this job never runs on forked repos. It's only executed for 'dataquest/dspace'
if: github.repository == 'dspace/dspace'
# Must run after 'dspace-dependencies' job above
needs: dspace-dependencies
Expand Down Expand Up @@ -288,10 +307,10 @@ jobs:


###########################################
# Build/Push the 'dspace/dspace-solr' image
# Build/Push the 'dataquest/dspace-solr' image
###########################################
dspace-solr:
# Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace'
# Ensure this job never runs on forked repos. It's only executed for 'dataquest/dspace'
if: github.repository == 'dspace/dspace'
runs-on: ubuntu-latest

Expand Down Expand Up @@ -341,10 +360,10 @@ jobs:
labels: ${{ steps.meta_build_solr.outputs.labels }}

###########################################################
# Build/Push the 'dspace/dspace-postgres-pgcrypto' image
# Build/Push the 'dataquest/dspace-postgres-pgcrypto' image
###########################################################
dspace-postgres-pgcrypto:
# Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace'
# Ensure this job never runs on forked repos. It's only executed for 'dataquest/dspace'
if: github.repository == 'dspace/dspace'
runs-on: ubuntu-latest

Expand Down Expand Up @@ -395,10 +414,10 @@ jobs:
labels: ${{ steps.meta_build_postgres.outputs.labels }}

########################################################################
# Build/Push the 'dspace/dspace-postgres-pgcrypto' image (-loadsql tag)
# Build/Push the 'dataquest/dspace-postgres-pgcrypto' image (-loadsql tag)
########################################################################
dspace-postgres-pgcrypto-loadsql:
# Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace'
# Ensure this job never runs on forked repos. It's only executed for 'dataquest/dspace'
if: github.repository == 'dspace/dspace'
runs-on: ubuntu-latest

Expand Down Expand Up @@ -449,4 +468,4 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
# Use tags / labels provided by 'docker/metadata-action' above
tags: ${{ steps.meta_build_postgres_loadsql.outputs.tags }}
labels: ${{ steps.meta_build_postgres_loadsql.outputs.labels }}
labels: ${{ steps.meta_build_postgres_loadsql.outputs.labels }}
Loading