Skip to content

Commit

Permalink
fix: try outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 12, 2024
1 parent a3aa07d commit 7183e26
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/rust-on-nails-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,24 @@ jobs:
# set the docker version
#
- name: Semantic Release
id: semantic_release
run: |
npm i -D @semantic-release/exec
npm i -D @semantic-release-plus/docker
npm i -D @semantic-release/git
npx semantic-release
- name: Check Semantic Release Outputs
run: |
echo "New release published: ${{ steps.semantic_release.outputs.new-release-published }}"
echo "Version: ${{ steps.semantic_release.outputs.version }}"
- name: Tag and Push Docker Image
if: steps.semantic-release.outputs.new-release-published == 'true'
if: ${{ steps.semantic_release.outputs.new-release-published == 'true' }}
run: |
docker pull $CONTAINER_NAME:latest
docker tag $CONTAINER_NAME:latest $CONTAINER_NAME:${{ steps.semantic-release.outputs.version }}
docker push $CONTAINER_NAME:${{ steps.semantic-release.outputs.version }}
docker tag $CONTAINER_NAME:latest $CONTAINER_NAME:${{ steps.semantic_release.outputs.version }}
docker push $CONTAINER_NAME:${{ steps.semantic_release.outputs.version }}
- name: "Publish Templates"
uses: devcontainers/action@v1
Expand Down

0 comments on commit 7183e26

Please sign in to comment.