gitea-actions-test/.gitea/workflows/test.yaml
Mark van Lent 7853976017
Some checks failed
Testing Gitea Actions / Build (push) Failing after 12s
Add Docker in Docker service
2026-02-03 10:36:42 +01:00

30 lines
671 B
YAML

name: Testing Gitea Actions
run-name: Building images in ${{ gitea.repository }}
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
services:
docker:
image: docker:latest
env:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_VERIFY: ""
steps:
- uses: actions/checkout@v4
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
- name: Build Docker Image
env:
BRANCH_NAME: ${{ github.ref_name }}
SHORT_HASH: ${{ github.sha }}
run: |
# Build the image with the commit hash tag
docker build -t test-image:${BRANCH_NAME}-${SHORT_HASH:0:5} .