generated from opensafely-core/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ebmdatalab/fix-deploy
Fix deploy
- Loading branch information
Showing
2 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,13 +73,26 @@ jobs: | |
name: metrics-image | ||
path: /tmp/metrics.tar.gz | ||
|
||
deploy: | ||
required-checks: | ||
if: always() | ||
|
||
needs: | ||
- check | ||
- test | ||
- docker-test-and-build | ||
- lint-dockerfile | ||
|
||
runs-on: Ubuntu-latest | ||
|
||
steps: | ||
- name: Decide whether the needed jobs succeeded or failed | ||
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | ||
with: | ||
jobs: ${{ toJSON(needs) }} | ||
|
||
deploy: | ||
needs: [required-checks] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
|
@@ -121,20 +134,3 @@ jobs: | |
ssh-add - <<< "${{ secrets.DOKKU3_DEPLOY_SSH_KEY }}" | ||
SHA=$(docker inspect --format='{{index .RepoDigests 0}}' "$PUBLIC_IMAGE_NAME":latest) | ||
ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" [email protected] git:from-image metrics "$SHA" | ||
required-checks: | ||
if: always() | ||
|
||
needs: | ||
- check | ||
- test | ||
- docker-test-and-build | ||
- lint-dockerfile | ||
|
||
runs-on: Ubuntu-latest | ||
|
||
steps: | ||
- name: Decide whether the needed jobs succeeded or failed | ||
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | ||
with: | ||
jobs: ${{ toJSON(needs) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters