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