-
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.
feat(ci): Build the Docker image in GitHub Actions CI
- Loading branch information
1 parent
091fef6
commit f519f9d
Showing
4 changed files
with
40 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.git | ||
LICENSE | ||
README.md |
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,30 @@ | ||
name: "Docker Image CI" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
env: | ||
RUNS_ON: "ubuntu-20.04" | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- name: "Build Docker Image" | ||
uses: docker/build-push-action@v5 | ||
with: | ||
load: true | ||
tags: "distcc-docker:${{ env.RUNS_ON }}" | ||
- name: "Simple test" | ||
run: | | ||
docker run \ | ||
--init \ | ||
--rm \ | ||
"distcc-docker:${{ env.RUNS_ON }}" | ||
--jobs $(nproc) \ | ||
-- \ | ||
bash -c \ | ||
"ps fauxw; " \ | ||
"/usr/bin/ls -alh .; " \ | ||
"/usr/bin/ls -alh /var/log; " \ | ||
"cat /var/log/*;" |
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