All checks were successful
test-backend / test-x86_64 (push) Successful in 23s
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
name: build-container-backend
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
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 gitea
|
|
git checkout ${{ gitea.ref_name }}
|
|
- name: Build docker image
|
|
run: docker build backend/ -f backend/Dockerfile-x86_64 -t 10.5.1.5:5000/sdlc/x86_64
|
|
- name: Push docker image to registry
|
|
run: docker push 10.5.1.5:5000/sdlc/x86_64
|
|
|
|
build-x86_64-testing:
|
|
runs-on: hardware-x86_64
|
|
steps:
|
|
#- name: Install docker
|
|
# shell: sh
|
|
# run: apk --update add docker
|
|
#- name: Install git
|
|
# shell: sh
|
|
# run: apk add git
|
|
- name: Pull repository
|
|
shell: sh
|
|
run: |
|
|
git init
|
|
git remote add gitea http://10.1.1.1:3000/hasslesstech/sdlc-project
|
|
git fetch gitea
|
|
git checkout gitea/master
|
|
- name: Build docker image
|
|
shell: sh
|
|
run: DOCKER_BUILDKIT=1 docker build backend/ -f tests/backend-testing-env -t 10.5.1.5:5000/sdlc/x86_64-testing
|
|
- name: Push docker image to registry
|
|
shell: sh
|
|
run: docker push 10.5.1.5:5000/sdlc/x86_64-testing
|
|
|
|
|
|
# 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 gitea
|
|
# git checkout gitea/master
|
|
# - name: Build docker image
|
|
# run: docker build backend/ -f backend/Dockerfile-armv7 -t 10.5.1.5:5000/sdlc/armv7
|
|
# - name: Push docker image to registry
|
|
# run: docker push 10.5.1.5:5000/sdlc/armv7
|