-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #804
- Loading branch information
Showing
6 changed files
with
68 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: ci·docker | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- .github/Dockerfile | ||
|
||
concurrency: | ||
group: ci/docker/${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: docker/setup-buildx-action@v3 | ||
|
||
- run: | | ||
mkdir products | ||
curl https://pkgx.sh/$(uname)/$(uname -m).tgz | tar -xz -C products | ||
- name: docker/buildx | ||
run: | ||
docker build | ||
--tag pkgxdev/pkgx | ||
--file .github/Dockerfile | ||
. | ||
|
||
- run: | | ||
echo <<EoD> Dockerfile | ||
FROM pkgxdev/pkgx | ||
RUN env +duf && duf | ||
RUN if which duf; then exit 1; fi | ||
EoD | ||
docker build --file Dockerfile . | ||
- run: | | ||
echo <<EoD> Dockerfile | ||
FROM pkgxdev/pkgx | ||
RUN echo '{}' > package.json | ||
RUN dev && npm --version | ||
RUN if which npm; then exit 1; fi | ||
EoD | ||
docker build --file Dockerfile . |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
pkgx is just another pkg so: | ||
|
||
``` | ||
```sh | ||
pkgx@latest npx@latest cowsay@latest 'fancy a cuppa?' | ||
``` | ||
|
||
|
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