Actions: Removed potential priming of the image, doesnt seem to work.

This commit is contained in:
zinobias 2023-05-17 17:10:22 +02:00 committed by Alessandro Pignotti
parent fd2918b6cf
commit 537f1fa805

View file

@ -47,8 +47,7 @@ jobs:
build:
runs-on: ubuntu-latest # Image to run the worker on.
outputs:
IMAGE_URL: ${{ steps.image_name_gen.outputs.IMAGE_NAME }}
env:
TAG: "ext2-webvm-base-image" # Tag of docker image.
IMAGE_SIZE: '${{ github.event.inputs.IMAGE_SIZE }}'
@ -74,11 +73,11 @@ jobs:
env:
GH_TOKEN: ${{ github.token }} # As required by the GitHub-CLI
# Setting the IMAGE_NAME variable in the env & job outputs to <Dockerfile name>_<date>_<run_id>.ext2.
# Setting the IMAGE_NAME variable in GITHUB_ENV to <Dockerfile name>_<date>_<run_id>.ext2.
- name: Generate the image_name.
id: image_name_gen
run: |
echo "IMAGE_NAME=$(basename ${{ github.event.inputs.DOCKERFILE_PATH }})_$(date +%Y%m%d)_${{ github.run_id }}.ext2" | tee -a $GITHUB_ENV $GITHUB_OUTPUT
echo "IMAGE_NAME=$(basename ${{ github.event.inputs.DOCKERFILE_PATH }})_$(date +%Y%m%d)_${{ github.run_id }}.ext2" >> $GITHUB_ENV
# We extract the uid and gid from the uid:gid input.
- run: |
@ -176,10 +175,3 @@ jobs:
- name: Deploy GitHub Pages site
id: deployment
uses: actions/deploy-pages@v2.0.0
- name: Print final url as job summary
run: |
echo "| Final URL to the Github pages site |" >> $GITHUB_STEP_SUMMARY
echo "| ---------------------------------- |" >> $GITHUB_STEP_SUMMARY
echo "| ${{ steps.deployment.outputs.page_url }} |" >> $GITHUB_STEP_SUMMARY
curl --silent --output /dev/null "${{ steps.deployment.outputs.page_url }}${{ needs.build.outputs.IMAGE_URL }}"