Skip to content

Commit

Permalink
ci: improved github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
demartis committed Nov 15, 2023
1 parent 9ba6c97 commit d9e64e1
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/sub_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
images: ${{ inputs.DOCKERHUB_REPO }}

-
name: Build and push :${{ env.TEST_TAG }}
name: Build and push [test] :${{ env.TEST_TAG }}
uses: docker/build-push-action@v5
with:
context: ./${{ inputs.DOCKER_CONTEXT }}
Expand All @@ -82,13 +82,12 @@ jobs:
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
# -
# name: Image simple check [test]
# run: |
# docker run --rm ${{ inputs.DOCKERHUB_REPO }}:${{ env.TEST_TAG }}
-
name: Image simple test
run: |
docker run --rm ${{ inputs.DOCKERHUB_REPO }}:${{ env.TEST_TAG }}
-
name: Image MCR version Check Test (Temp skip)
continue-on-error: true
name: MCR release check [test]
run: |
docker run -v ${{ github.workspace }}/test:/test --rm ${{ inputs.DOCKERHUB_REPO }}:${{ env.TEST_TAG }} bash -c "chmod +x /test/mcr_version.sh && /test/mcr_version.sh ${{ inputs.DOCKERHUB_TAG }}"
Expand All @@ -115,12 +114,11 @@ jobs:
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache

-
name: MCR version check
name: MCR release check
run: |
docker run -v ${{ github.workspace }}/test:/test --rm ${{ inputs.DOCKERHUB_REPO }}:${{ env.DOCKERHUB_TAG }} bash -c "chmod +x /test/mcr_version.sh && /test/mcr_version.sh ${{ inputs.DOCKERHUB_TAG }}"
docker run -v ${{ github.workspace }}/test:/test --rm ${{ inputs.DOCKERHUB_REPO }}:${{ inputs.DOCKERHUB_TAG }} bash -c "chmod +x /test/mcr_version.sh && /test/mcr_version.sh ${{ inputs.DOCKERHUB_TAG }}"
-
name: MCR Test (Temp skipped)
continue-on-error: true
run: |
docker run --rm ${{ inputs.DOCKERHUB_REPO }}:${{ inputs.DOCKERHUB_TAG }} echo "TODO: ADD MCR TEST"
# -
# name: MCR Test (TODO)
# run: |
# docker run --rm ${{ inputs.DOCKERHUB_REPO }}:${{ inputs.DOCKERHUB_TAG }} echo "TODO: ADD MCR TEST"

0 comments on commit d9e64e1

Please sign in to comment.