-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update devcontainer setup and use GHCR to host the image
Signed-off-by: Marek Pikuła <[email protected]>
- Loading branch information
1 parent
e0f5e92
commit 3212eda
Showing
3 changed files
with
39 additions
and
31 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
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
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 |
---|---|---|
|
@@ -13,6 +13,27 @@ on: | |
|
||
|
||
jobs: | ||
build-devcontainer: | ||
runs-on: ubuntu-latest | ||
# if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v3 | ||
|
||
- 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/[email protected] | ||
with: | ||
imageName: ghcr.io/systemrdl/peakrdl-markdown/devcontainer | ||
cacheFrom: ghcr.io/systemrdl/peakrdl-markdown/devcontainer | ||
push: always | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|