Skip to content

Commit

Permalink
Do not use devcontainers action, use own
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Czyz <[email protected]>
  • Loading branch information
mczyz-antmicro committed Mar 26, 2024
1 parent 972f528 commit 6f9ccfd
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,27 @@ jobs:
with:
ref: "mczyz/dev"

- name: Pre-build dev container image
uses: devcontainers/[email protected]
# - name: Pre-build dev container image
# uses: devcontainers/[email protected]
# with:
# imageName: ghcr.io/openroad-codespace/test
# cacheFrom: ghcr.io/openroad-codespace/test
# push: always
# configFile: ./.devcontainer/ubuntu-gui/devcontainer.json

- name: Devcontainer build
run: |
npm install -g @devcontainers/cli
devcontainer build --config .devcontainer/ubuntu-gui/devcontainer.json --workspace-folder . --push false --image-name test:latest
- name: Login to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace'
uses: docker/login-action@v2
with:
imageName: ghcr.io/openroad-codespace/test
cacheFrom: ghcr.io/openroad-codespace/test
push: always
configFile: ./.devcontainer/ubuntu-gui/devcontainer.json
registry: ghcr.io
username: gha
password: ${{ github.token }}

- name: Push container image to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace'
run: docker push ghcr.io/antmicro/openroad-codespace:test

0 comments on commit 6f9ccfd

Please sign in to comment.