ci: add docker pipeline

This commit is contained in:
2025-06-21 21:24:54 +03:00
parent a1309bfe44
commit 3a478cb28d
4 changed files with 52 additions and 5 deletions
+26
View File
@@ -0,0 +1,26 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-docker:
runs-on: debian-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: |
docker build -t git.mi6e4ka.dev/yabl/app:latest -f ./docker/Dockerfile .
- name: Login to local Docker registry
run: |
echo ${{ secrets.REGISTRY_PASSWORD }} | docker login git.mi6e4ka.dev \
--username ${{ secrets.REGISTRY_USERNAME }} \
--password-stdin
- name: Push image
run: |
docker push git.mi6e4ka.dev/yabl/app:latest
+2 -2
View File
@@ -4,8 +4,8 @@
name: Go
on:
release:
types: [published]
# release:
# types: [published]
workflow_dispatch:
jobs: