-
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.
Add basic CI workflow to test action works
Signed-off-by: Nick Adcock <nick.adcock@docker.com>
- Loading branch information
Nick Adcock
committed
Mar 5, 2020
1 parent
0d47b3c
commit 676cae2
Showing
2 changed files
with
35 additions
and
0 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,32 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run local registry | ||
run: docker run -d -p 5000:5000 registry:2 | ||
|
||
- name: Build and push image | ||
uses: ./ | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
with: | ||
registry: localhost:5000 | ||
repository: temp/workflow | ||
tags: foo | ||
|
||
- name: Remove local image | ||
run: docker image rm localhost:5000/temp/workflow:foo | ||
|
||
- name: Run image from registry | ||
run: docker run localhost:5000/temp/workflow:foo |
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 @@ | ||
FROM alpine:3 | ||
|
||
ENTRYPOINT ["echo", "docker github actions"] |