All checks were successful
Testing Gitea Actions / Build (push) Successful in 9s
19 lines
454 B
YAML
19 lines
454 B
YAML
name: Testing Gitea Actions
|
|
run-name: Building images in ${{ gitea.repository }}
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- 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} .
|