From 052419f577e5708a9465bf3db26b9c496818b5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rok=20Ro=C5=A1kar?= Date: Tue, 20 Aug 2024 11:51:45 +0200 Subject: [PATCH] chore: add devcontainer ci action --- .github/workflows/build-image.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-image.yml diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml new file mode 100644 index 0000000..1f9b86e --- /dev/null +++ b/.github/workflows/build-image.yml @@ -0,0 +1,28 @@ +name: 'build image' +on: # rebuild any PRs and main branch changes + pull_request: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + + - name: Checkout (GitHub) + uses: actions/checkout@v4 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and run Dev Container task + uses: devcontainers/ci@v0.3 + with: + imageName: ghcr.io/rokroskar/renku-template-project + cacheFrom: ghcr.io/rokroskar/renku-template-project + push: always