Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

chore(devdeps): update bobheadxi/deployments action to v1 #107

Merged
merged 2 commits into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
([[ $GITHUB_REF == 'refs/heads/main' ]] && echo "HOST=form.ui.scaleway.com" || echo "HOST=$SAFE_GITHUB_HEAD_REF_SLUG_URL.form.ui.scaleway.com") >> $GITHUB_ENV

- name: Start deployment
uses: bobheadxi/deployments@v0.6.2
uses: bobheadxi/deployments@v1.0.1
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN }}
env: ${{ env.BRANCH_SLUG }}
ref: ${{ github.head_ref }}
- name: Set up Docker Buildx
Expand Down Expand Up @@ -70,11 +70,12 @@ jobs:
run: docker-compose --context form-${VERSION} pull && docker-compose -p form-${VERSION} --context form-${VERSION} up -d --force-recreate

- name: Update deployment status
uses: bobheadxi/deployments@v0.6.2
uses: bobheadxi/deployments@v1.0.1
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
env: ${{ env.BRANCH_SLUG }}
token: ${{ secrets.GH_TOKEN }}
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: https://${{ env.HOST }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/teardown_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
run: docker-compose -p form-${VERSION} --context form-${VERSION} down --rmi all

- name: Update deployment status
uses: bobheadxi/deployments@v0.6.2
uses: bobheadxi/deployments@v1.0.1
with:
step: deactivate-env
token: ${{ secrets.GITHUB_TOKEN }}
step: delete-env
token: ${{ secrets.GH_TOKEN }}
env: ${{ env.BRANCH_SLUG }}