mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-03 00:23:13 +00:00
Attempt to fix CD
This commit is contained in:
parent
3445ee12b5
commit
de927136b7
2 changed files with 2 additions and 11 deletions
|
@ -9,10 +9,6 @@ DBX_OAUTH2_REFRESH_TOKEN=
|
||||||
DBX_APP_KEY=
|
DBX_APP_KEY=
|
||||||
DBX_APP_SECRET=
|
DBX_APP_SECRET=
|
||||||
|
|
||||||
CI_REGISTRY_USER=wlinator
|
|
||||||
CI_REGISTRY_PASSWORD=
|
|
||||||
CI_REGISTRY_IMAGE=registry.gitlab.com/wlinator/Racu
|
|
||||||
|
|
||||||
MARIADB_USER=
|
MARIADB_USER=
|
||||||
MARIADB_PASSWORD=
|
MARIADB_PASSWORD=
|
||||||
MARIADB_ROOT_PASSWORD=
|
MARIADB_ROOT_PASSWORD=
|
||||||
|
|
|
@ -7,10 +7,5 @@ docker_build:
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
script:
|
script:
|
||||||
- docker build -t racu .
|
- docker build -t $CI_REGISTRY_IMAGE:$(git describe --tags --abbrev=0) .
|
||||||
- source .env # Load environment variables from .env
|
- docker push $CI_REGISTRY_IMAGE
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
||||||
- git fetch --tags # Fetch Git tags
|
|
||||||
- TAG=$(git describe --tags --abbrev=0) # Get the latest Git tag
|
|
||||||
- docker tag my-python-app $CI_REGISTRY_IMAGE:$TAG # Tag the image with the Git tag
|
|
||||||
- docker push $CI_REGISTRY_IMAGE:$TAG # Push the tagged image
|
|
Loading…
Reference in a new issue