Skip to content

Commit

Permalink
Update workflow and superbuild image
Browse files Browse the repository at this point in the history
  • Loading branch information
MSECode committed Dec 19, 2023
1 parent 29df459 commit 800c4ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ jobs:
- name: Set date argument for Docker build
id: get_date
run: |
echo "$(date +'%d/%m/%Y_%H:%M:%S')" > DATE_HOUR_TAG
echo "DATE_HOUR_TAG=" >> $GITHUB_OUTPUT
echo "$(date +'%d/%m/%Y_%H:%M:%S')" > DATE_HOUR
echo "DATE_HOUR_TAG=$(cat DATE_HOUR)" >> $GITHUB_OUTPUT
##################### Here we check the release version and replace Custom with stable only for the image name ######################
- name: Get release / master version
Expand Down Expand Up @@ -332,6 +332,12 @@ jobs:
id: tag-sources-ghcr
if: steps.get_args.outputs.CMPL_SRC == 'true'
run: docker tag ${{env.DEFAULT_USER}}/${{ steps.get_args.outputs.IMG_NAME }}_sources" ${{ env.REGISTRY }}/${{ env.REPOSITORY_NAME }}/${{ env.IMAGE_PREFIX }}${{ steps.get_args.outputs.IMG_NAME }}_sources"

- name: Push source images to Ghcr.io
id: push-sources-ghcr
if: steps.get_args.outputs.CMPL_SRC == 'true'
run: docker push ${{ env.REGISTRY }}/${{ env.REPOSITORY_NAME }}/${{ env.IMAGE_PREFIX }}${{ steps.get_args.outputs.IMG_NAME }}_sources"


outputs:
img_name: ${{ steps.get_args.outputs.IMG_NAME }}
Expand Down
3 changes: 1 addition & 2 deletions dockerfile_images/basic/superbuild/conf_build.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[sources]
START_IMG=ubuntu:jammy
; metadata=$(cat DATE_HOUR_TAG)
metadata={{steps.get_date.outputs.metadata}}
metadata={{steps.get_date.outputs.DATE_HOUR_TAG}}
release={{steps.get_version.outputs.VERSION}}
sbtag={{matrix.tag}}

Expand Down

0 comments on commit 800c4ca

Please sign in to comment.