Files
Sharp8N.Compiler/.gitea/workflows/build-and-test.yml
VitalickS 9738a855bb
All checks were successful
Build and Test / build-image (push) Successful in 59s
Update .gitea/workflows/build-and-test.yml
2025-12-31 22:34:52 +00:00

27 lines
850 B
YAML

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: Login to the DockerHub registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -t ${{ vars.DOCKERHUB_COMPILERIMAGENAME }} .
docker push ${{ vars.DOCKERHUB_COMPILERIMAGENAME }}
- name: Check compiler image basic request
run: docker run --rm ${{ vars.DOCKERHUB_COMPILERIMAGENAME }}