improve testing performance
Some checks failed
test-backend / test-x86_64 (push) Failing after 0s

This commit is contained in:
ІО-23 Шмуляр Олег 2025-05-25 20:00:36 +03:00
parent 642c1fa944
commit e7802fb93e
3 changed files with 29 additions and 8 deletions

View File

@ -18,6 +18,30 @@ jobs:
- 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 build backend/ -f tests/backend-testing-env -v /var/run/docker.sock:/var/run/docker.sock -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:

View File

@ -5,15 +5,8 @@ on:
jobs:
test-x86_64:
runs-on: alpine
runs-on: backend-testing-env
steps:
- name: Install tools for testing
shell: sh
run: |
apk --update add git docker docker-compose postgresql
- name: Pull postgres docker image
shell: sh
run: docker pull postgres
- name: Pull custom docker image
shell: sh
run: docker pull 10.5.1.5:5000/sdlc/x86_64

View File

@ -0,0 +1,4 @@
FROM alpine:latest
RUN apk --update add git docker docker-compose postgresql
RUN docker pull postgres