Files
docker-logger/.gitea/workflows/docker.yml
lif 954fb36b5e
All checks were successful
Build and Push Docker Image / build (push) Successful in 6m29s
Rerun ci
2025-09-14 20:58:35 +01:00

55 lines
1.1 KiB
YAML

name: Build and Push Docker Image
on:
push:
branches: [ main ]
jobs:
build:
runs-on: [label-one]
container:
image: liffsh/dind
steps:
- uses: actions/checkout@v4
- name: Login to Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/go/bin
key: go-mod-{{ hashFiles('**/go.sum') }}
restore-keys: |
go-mod-
# Set up Go
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
# Download modules
- name: Go mod tidy
run: go mod tidy
- name: ls
run:
ls
- name: Build Docker Image
env:
BRANCH_NAME: ${{ github.ref_name }}
SHORT_HASH: ${{ github.sha }}
run: |
docker build .
- name: Push
run:
docker push liffsh/lilog:latest