Skip to content

Commit

Permalink
Allow for ghc version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DevopsGoth authored Dec 5, 2023
1 parent a5ab7ce commit 44476a9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/dockerhub_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
description: "The X.Y.Z tag for the new version"
type: string
required: true
GHC_VERSION:
description: "Input an updated ghc version"
type: string
required: false
workflow_call:
inputs:
SHORT_SHA:
Expand All @@ -29,6 +33,11 @@ on:
description: "The X.Y.Z tag for the new version"
type: string
required: true
GHC_VERSION:
description: "Input an updated ghc version"
type: string
required: false

jobs:
Build-Push:
runs-on: ubuntu-latest
Expand All @@ -47,7 +56,12 @@ jobs:
run: |
echo "DOCKERHUB_SHA=not yet updated" >> $GITHUB_ENV
sed -i -e "s/ARG REVISION=.*/ARG REVISION=${{ inputs.SHORT_SHA }}/" Dockerfile
- name: Update GHC version if needed
run: |
if [[ ! -z ${{ inputs.GHC_VERSION }} ]]
sed -i -e "s/ARG GHCVER=.*/ARG GHCVER=${{ inputs.GHC_VERSION }}/" Dockerfile
fi
- name: Build and push ubuntu image
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit 44476a9

Please sign in to comment.