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.
This is a separate job so that we can easily and cleanly have the research-template repository checked out. We could consider moving the smoke test here, although it's maybe advantageous to have that fail early, before the Docker image is compressed (because that's a slow step).
- Loading branch information
1 parent
e97af58
commit 297d3e9
Showing
2 changed files
with
35 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -45,8 +45,40 @@ jobs: | |
# Disable compression; the file is already compressed | ||
compression-level: 0 | ||
|
||
publish: | ||
test-devcontainer: | ||
needs: [build-and-test] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download Docker image | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: research-template-image | ||
path: /tmp/image | ||
|
||
- name: Import Docker image | ||
run: docker load --input /tmp/image/research-template.tar.gz | ||
|
||
- name: Tag Docker image for use with dev container | ||
run: docker tag $IMAGE_NAME $PUBLIC_IMAGE_NAME:v0 | ||
|
||
- name: Checkout research template temporary devcontainer dev branch | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: opensafely/research-template | ||
|
||
- name: Checkout research-template-docker repository in subdirectory | ||
uses: actions/checkout@v4 | ||
with: | ||
path: 'research-template/research-template-docker' | ||
|
||
- name: Build and run dev container task | ||
uses: devcontainers/[email protected] | ||
with: | ||
runCmd: ./research-template/research-template-docker/tests/dev_container.sh | ||
|
||
publish: | ||
needs: [build-and-test, test-devcontainer] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
opensafely run run_all |