Skip to content

Commit 8e71457

Browse files
committed
Convert to devcontainer-build-run action
1 parent b8e5438 commit 8e71457

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,29 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121

22-
- name: CI Tooling
23-
run: sudo apt update && sudo apt install build-essential -y
24-
25-
- name: Build devcontainer for tooling
26-
run: sudo -E make devcontainer
22+
- name: Set up Docker BuildKit
23+
uses: docker/setup-buildx-action@v1
2724

28-
- name: Run the release
29-
run: sudo -E make devcontainer-release
25+
- name: Login to GitHub Container Registry
26+
uses: docker/login-action@v1
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.repository_owner }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Build and run CLI
33+
uses: stuartleeks/[email protected]
3034
env:
3135
GITHUB_TOKEN: ${{ secrets.GH_CROSS_REPO_TOKEN }}
3236
BUILD_NUMBER: ${{ github.run_id }}
33-
IS_CI: 1
3437
IS_PR: ${{ github.head_ref }}
3538
BRANCH: ${{ github.ref }}
39+
with:
40+
imageName: ghcr.io/stuartleeks/devcontainer-cli-devcontainer
41+
runCmd: make devcontainer-release
42+
env: |
43+
GITHUB_TOKEN
44+
BUILD_NUMBER
45+
IS_CI=1
46+
IS_PR
47+
BRANCH

0 commit comments

Comments
 (0)