Skip to content

Commit

Permalink
Getting a job output setup requires mapping the job output to a step
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynforthewyn committed Jun 2, 2024
1 parent 1d71b0b commit 94b2a0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish_website_docker_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
env:
DOCKERIMAGE: docker.io/playtechnique/website:${{ github.run_number }}
runs-on: ubuntu-latest
outputs:
dockerimage: ${{ steps.set-docker-iamge.outputs.dockerimage }}

steps:
- name: Log in to DockerHub
Expand All @@ -27,13 +29,15 @@ jobs:
tags: ${{ env.DOCKERIMAGE }}

- name: what is the docker image and set it to github output
id: set-docker-iamge
run: |
echo ${{ env.DOCKERIMAGE }}
echo "dockerimage=${{ env.DOCKERIMAGE }}"" >> ${GITHUB_OUTPUT}
- uses: actions/checkout@v4

release-to-production:
uses: .github/workflows/release_website.yaml
uses: ./.github/workflows/release_website.yaml
needs: build
with:
docker-image: ${{needs.build.outputs.dockerimage}}

0 comments on commit 94b2a0c

Please sign in to comment.