sdlc-project/.gitea/workflows/build-container-backend.yaml
hasslesstech 05fc8cc13f
Some checks failed
build-container-backend / build-armv7 (push) Failing after 0s
build-container-backend / build-x86_64 (push) Successful in 1s
add workflow for building containers
2025-05-25 17:28:37 +03:00

35 lines
1.1 KiB
YAML

name: build-container-backend
on:
workflow-dispatch:
push:
jobs:
build-x86_64:
runs-on: hardware-x86_64
steps:
- name: Pull repository
run: |
git init
git remote add gitea http://10.1.1.1:3000/hasslesstech/sdlc-project
git fetch
git checkout gitea/master
- name: Build docker image
run: docker build backend/ -f backend/Dockerfile-x86_64 -t 10.5.1.5:5000/hasslesstech/sdlc-container
- name: Push docker image to registry
run: docker push 10.5.1.5:5000/hasslesstech/sdlc-container
build-armv7:
runs-on: hardware-armv7
steps:
- name: Pull repository
run: |
git init
git remote add gitea http://10.1.1.1:3000/hasslesstech/sdlc-project
git fetch
git checkout gitea/master
- name: Build docker image
run: docker build backend/ -f backend/Dockerfile-armv7 -t 10.5.1.5:5000/hasslesstech/sdlc-container
- name: Push docker image to registry
run: docker push 10.5.1.5:5000/hasslesstech/sdlc-container