Skip to content

Commit

Permalink
ci: Fix output assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Dec 28, 2020
1 parent 90d0ada commit 785fb51
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:

if [[ ${GITHUB_REF#refs/*/} == sushii-2* ]]
then
echo ::set-output name=${{ env.SUSHII_2_IMAGE_NAME}}
echo ::set-output docker_file="./sushii-2/Dockerfile"
echo ::set-output description="Moderation bot for Discord"
echo ::set-output name=image::${{ env.SUSHII_2_IMAGE_NAME}}
echo ::set-output name=docker_file::"./sushii-2/Dockerfile"
echo ::set-output name=description::"Moderation bot for Discord"
exit 0
fi

if [[ ${GITHUB_REF#refs/*/} == sushii-api* ]]
then
echo ::set-output name=${{ env.SUSHII_API_IMAGE_NAME}}
echo ::set-output docker_file="./sushii-api/Dockerfile"
echo ::set-output description="GraphQL API server for sushii2"
echo ::set-output name=image::${{ env.SUSHII_API_IMAGE_NAME}}
echo ::set-output name=docker_file::"./sushii-api/Dockerfile"
echo ::set-output name=description::"GraphQL API server for sushii2"
exit 0
fi

Expand All @@ -44,13 +44,13 @@ jobs:

- name: uhh
run: |
echo ${{ steps.docker_image_select.outputs.name }}
echo ${{ steps.docker_image_select.outputs }}

- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ${{ steps.docker_image_select.outputs.name }}
images: ${{ steps.docker_image_select.outputs.image}}
tag-sha: true
tag-semver: |
{{version}}
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
file: ${{ steps.docker_image_select.outputs.name }}
file: ${{ steps.docker_image_select.outputs.docker_file }}
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
Expand Down

0 comments on commit 785fb51

Please sign in to comment.