From 99533f24aa647a92811ca973d019958e5b5050aa Mon Sep 17 00:00:00 2001 From: Piotr Grzeskowiak Date: Fri, 31 May 2024 13:33:32 +0100 Subject: [PATCH] WIP --- .github/workflows/ansible-aws-image-build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ansible-aws-image-build.yml b/.github/workflows/ansible-aws-image-build.yml index a7e59e6d0..41b24a51f 100644 --- a/.github/workflows/ansible-aws-image-build.yml +++ b/.github/workflows/ansible-aws-image-build.yml @@ -65,6 +65,9 @@ jobs: # only required for workflows in private repositories actions: read contents: read + defaults: + run: + working-directory: docker/delius-ansible-aws/Dockerfile runs-on: ubuntu-latest steps: - name: Download artifact @@ -120,18 +123,18 @@ jobs: TAG_CONTEXT: repo # Making this default visible PRERELEASE: ${{ github.base_ref != 'refs/heads/main' }} PRERELEASE_SUFFIX: ${{ github.base_ref }} # Branch name - + - name: Create safe tag id: safe_tag run: | echo "SAFE_TAG=$(echo ${{ steps.bump-version.outputs.new_tag }} | sed 's/[^a-zA-Z0-9.]/-/g')" >> $GITHUB_OUTPUT - + - name: Download Artifact uses: actions/download-artifact@v4 with: name: ansible-aws-image path: /tmp - + - name: Load and retag image for publish run: | docker load --input /tmp/ansible-aws-image.tar @@ -147,4 +150,3 @@ jobs: - name: Publish image run: docker push ghcr.io/ministryofjustice/hmpps-delius-operational-automation:${{ steps.safe_tag.outputs.SAFE_TAG }} - \ No newline at end of file