add act_runner build job
Some checks failed
Build docker image and push to registry.bitdeals.org / main-build-job (push) Failing after 25s

This commit is contained in:
2026-02-09 11:43:27 +03:00
parent d701d2f872
commit b49dcf9346

View File

@@ -0,0 +1,34 @@
name: Build docker image and push to registry.bitdeals.org
run-name: docker build and docker push
on:
push:
branches:
- main
- master
schedule:
- cron: '25 10 * * *'
jobs:
main-build-job:
runs-on: ubuntu-latest
env:
VERSION: 1.0
COMMIT: ${{ gitea.sha }}
REPOSITORY: ${{ gitea.repository }}
#registry.bitdeals.org
REGISTRY: 10.0.3.111:5000
steps:
- name: Checkout repository code
uses: actions/checkout@v6
- name: Build docker app image
run: |
docker build . \
--file "$(find ./Dockerfile ./docker/Dockerfile -print -quit 2>/dev/null)" \
--label "git-commit=$COMMIT" \
--tag "$REGISTRY"/"${REPOSITORY##*/}":"$VERSION"."${COMMIT::7}" \
--tag "$REGISTRY"/"${REPOSITORY##*/}":latest
- name: Push images to registry
run: |
docker push "$REGISTRY"/${REPOSITORY##*/}:$VERSION.${COMMIT::7} ; \
docker push "$REGISTRY"/${REPOSITORY##*/}:latest