forked from pkgxdev/pkgx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile and docker docs (pkgxdev#805)
Closes pkgxdev#804
- Loading branch information
Showing
6 changed files
with
66 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,50 @@ | ||
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 | ||
|
||
- run: | | ||
mkdir products | ||
curl https://pkgx.sh/$(uname)/$(uname -m).gz | gunzip > products/$(uname -m) | ||
chmod +x products/* | ||
- run: | ||
docker build | ||
--tag pkgxdev/pkgx | ||
--file .github/Dockerfile | ||
. | ||
|
||
- run: | | ||
cat <<EoD> Dockerfile | ||
FROM pkgxdev/pkgx | ||
RUN env +duf && duf | ||
RUN if which duf; then exit 1; fi | ||
EoD | ||
docker build --file Dockerfile . | ||
- run: | | ||
cat <<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