Skip to content

Commit

Permalink
WIP: test dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenMaude committed May 3, 2024
1 parent d09e51e commit 9d17de5
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,35 @@ jobs:
name: research-template-image
path: /tmp/research-template.tar.gz

publish:
test-devcontainer-with-research-template:
needs: [build-and-test]
runs-on: ubuntu-latest

steps:
- name: Checkout research template default branch
uses: actions/checkout@v4
with:
repository: opensafely/research-template

- 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:latest

- name: Build and run dev container task
uses: devcontainers/[email protected]
with:
runCmd: opensafely run run_all

publish:
needs: [build-and-test, test-devcontainer]

runs-on: ubuntu-22.04

Expand Down

0 comments on commit 9d17de5

Please sign in to comment.