chore(gitlab-ci): work on podman config
This commit is contained in:
parent
057a9947f6
commit
6e3d0aaa2e
@ -48,7 +48,7 @@ frontend image:
|
|||||||
stage: build images
|
stage: build images
|
||||||
script:
|
script:
|
||||||
# TODO: define make target for this?
|
# TODO: define make target for this?
|
||||||
- make -- --docker-build-frontend-build FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose
|
- make -- --docker-build-frontend-build FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose --privileged
|
||||||
- podman image save frontend | gzip > docker/frontend/image.tar.gz
|
- podman image save frontend | gzip > docker/frontend/image.tar.gz
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
@ -61,7 +61,7 @@ frontend build:
|
|||||||
artifacts: true
|
artifacts: true
|
||||||
script:
|
script:
|
||||||
- &load-frontend-image zcat docker/frontend/image.tar.gz | podman image load
|
- &load-frontend-image zcat docker/frontend/image.tar.gz | podman image load
|
||||||
- make -- --docker-run-frontend-build FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose
|
- make -- --docker-run-frontend-build FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose --privileged
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- /fradrive/node_modules
|
- /fradrive/node_modules
|
||||||
@ -80,7 +80,7 @@ frontend lint:
|
|||||||
artifacts: true
|
artifacts: true
|
||||||
script:
|
script:
|
||||||
- *load-frontend-image
|
- *load-frontend-image
|
||||||
- make -- --docker-run-frontend-lint FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose
|
- make -- --docker-run-frontend-lint FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose --privileged
|
||||||
cache: *frontend-cache
|
cache: *frontend-cache
|
||||||
|
|
||||||
frontend test:
|
frontend test:
|
||||||
@ -92,7 +92,7 @@ frontend test:
|
|||||||
artifacts: true
|
artifacts: true
|
||||||
script:
|
script:
|
||||||
- *load-frontend-image
|
- *load-frontend-image
|
||||||
- make -- --docker-run-frontend-test FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose
|
- make -- --docker-run-frontend-test FRADRIVE_SERVICE=frontend CONTAINER_RUNNER=podman-compose --privileged
|
||||||
|
|
||||||
cache: *frontend-cache
|
cache: *frontend-cache
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ backend image:
|
|||||||
stage: build images
|
stage: build images
|
||||||
script:
|
script:
|
||||||
# TODO: define make target for this?
|
# TODO: define make target for this?
|
||||||
- make -- --docker-build-backend-build FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose
|
- make -- --docker-build-backend-build FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose --privileged
|
||||||
- podman image save backend | gzip > docker/backend/image.tar.gz
|
- podman image save backend | gzip > docker/backend/image.tar.gz
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
@ -129,7 +129,7 @@ backend build:
|
|||||||
artifacts: true
|
artifacts: true
|
||||||
script:
|
script:
|
||||||
- &load-backend-image zcat docker/backend/image.tar.gz | podman image load
|
- &load-backend-image zcat docker/backend/image.tar.gz | podman image load
|
||||||
- make -- --docker-run-backend-build FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose
|
- make -- --docker-run-backend-build FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose --privileged
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- /fradrive/.stack/
|
- /fradrive/.stack/
|
||||||
@ -143,7 +143,7 @@ backend lint:
|
|||||||
artifacts: true
|
artifacts: true
|
||||||
script:
|
script:
|
||||||
- *load-backend-image
|
- *load-backend-image
|
||||||
- make -- --docker-run-backend-lint FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose
|
- make -- --docker-run-backend-lint FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose --privileged
|
||||||
cache: *backend-cache
|
cache: *backend-cache
|
||||||
|
|
||||||
backend test:
|
backend test:
|
||||||
@ -155,7 +155,7 @@ backend test:
|
|||||||
artifacts: true
|
artifacts: true
|
||||||
script:
|
script:
|
||||||
- *load-backend-image
|
- *load-backend-image
|
||||||
- make -- --docker-run-backend-test FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose
|
- make -- --docker-run-backend-test FRADRIVE_SERVICE=backend CONTAINER_RUNNER=podman-compose --privileged
|
||||||
cache: *backend-cache
|
cache: *backend-cache
|
||||||
|
|
||||||
push backend image:
|
push backend image:
|
||||||
|
|||||||
Reference in New Issue
Block a user