commit 1d460c7baf52a94ac9cac5ae0b9bf129c59c8421 Author: shode Date: Sun Jan 5 19:30:05 2025 +0300 Demo workflow diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml new file mode 100644 index 0000000..b8188c6 --- /dev/null +++ b/.gitea/workflows/gitea-ci.yaml @@ -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 \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..e1e77c9 --- /dev/null +++ b/dockerfile @@ -0,0 +1,3 @@ +FROM alpine:latest + +CMD ["echo", "Hello, World!"] \ No newline at end of file