Skip to content

Commit

Permalink
attempt two
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoely86 committed Aug 26, 2024
1 parent a10ab5b commit 8f40fc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- name: Set a tag based on the date
run: |
echo IMAGE_TAG=$(date +"%Y%m%d") >> $GITHUB_ENV
echo "Image tag is $IMAGE_TAG or ${{ env.IMAGE_TAG }}"
- name: Determine latest release of ondemand
id: getlatestrelease
Expand All @@ -40,14 +41,16 @@ jobs:
with:
repository: 'OSC/ondemand'
ref: '${{ env.RELEASE }}'
path: 'ondemand'

- name: Build Image
uses: redhat-actions/buildah-build@v2
id: build-image
with:
tags: latest ${{ github.sha }} ${{ env.IMAGE_TAG }} ${{ env.RELEASE }}
image: ondemand
containerfiles: "./Containerfile"
containerfiles: ondemand/Containerfile
context: ondemand

- name: Print image name and tags
run: echo "Image ${{ steps.build-image.outputs.image }} build with tags ${{ steps.build-image.outputs.tags }}" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 8f40fc0

Please sign in to comment.