Skip to content
Draft
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
36 changes: 36 additions & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Container Image

# This workflow automatically publishes container images to Docker Hub
# whenever there's a push to the master branch

concurrency:
group: publish-image-${{ github.ref }}
cancel-in-progress: false

on:
push:
branches:
- master
paths-ignore:
# config files
- ".**"
# documentation
- "docs/**"
- "**.md"
# tests
- "**test/**"
- "**_test.clj"
- "**/frontend/**.unit.*"

jobs:
# Build the uberjar first
uberjar:
uses: ./.github/workflows/uberjar.yml
secrets: inherit

# Containerize and publish the image
containerize:
needs: [uberjar]
if: needs.uberjar.result == 'success'
uses: ./.github/workflows/containerize-uberjar.yml
secrets: inherit