Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Grzeskowiak committed May 31, 2024
1 parent 67cd136 commit 99533f2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ansible-aws-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -147,4 +150,3 @@ jobs:
- name: Publish image
run: docker push ghcr.io/ministryofjustice/hmpps-delius-operational-automation:${{ steps.safe_tag.outputs.SAFE_TAG }}


0 comments on commit 99533f2

Please sign in to comment.