Demo workflow
This commit is contained in:
commit
1d460c7baf
27
.gitea/workflows/gitea-ci.yaml
Normal file
27
.gitea/workflows/gitea-ci.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Gitea actions demo.
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
image: docker:latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build Docker Image
|
||||||
|
run: |
|
||||||
|
docker build -t hello-world-image .
|
||||||
|
run-app:
|
||||||
|
image: docker:latest
|
||||||
|
steps:
|
||||||
|
- name: Run Docker Container
|
||||||
|
run: |
|
||||||
|
docker run --name hello-world-container --rm hello-world-image
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
image: docker:latest
|
||||||
|
steps:
|
||||||
|
- name: Remove Docker Image
|
||||||
|
run: |
|
||||||
|
docker rmi -f hello-world-image
|
3
dockerfile
Normal file
3
dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
CMD ["echo", "Hello, World!"]
|
Loading…
Reference in New Issue
Block a user