Add .gitea/workflows/build-and-test.yml
Some checks failed
Build and Test / build-image (push) Failing after 45s
Some checks failed
Build and Test / build-image (push) Failing after 45s
This commit is contained in:
20
.gitea/workflows/build-and-test.yml
Normal file
20
.gitea/workflows/build-and-test.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: Build and Test
|
||||||
|
|
||||||
|
run-name: ${{ gitea.actor }} is building a Docker image 🚀
|
||||||
|
|
||||||
|
on: [push] # Triggers the workflow on push events
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-image:
|
||||||
|
runs-on: ubuntu-latest # Specifies the runner environment
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4 # Uses a standard action to check out the repository code
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker build -t TestImage:latest .
|
||||||
|
# The 'run:' keyword executes shell commands
|
||||||
|
|
||||||
|
- name: Run tests (example)
|
||||||
|
run: echo "Tests passed!"
|
||||||
Reference in New Issue
Block a user