mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 22: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_SECRET=
|
||||
|
||||
CI_REGISTRY_USER=wlinator
|
||||
CI_REGISTRY_PASSWORD=
|
||||
CI_REGISTRY_IMAGE=registry.gitlab.com/wlinator/Racu
|
||||
|
||||
MARIADB_USER=
|
||||
MARIADB_PASSWORD=
|
||||
MARIADB_ROOT_PASSWORD=
|
||||
|
|
|
@ -7,10 +7,5 @@ docker_build:
|
|||
services:
|
||||
- docker:dind
|
||||
script:
|
||||
- docker build -t racu .
|
||||
- source .env # Load environment variables from .env
|
||||
- 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
|
||||
- docker build -t $CI_REGISTRY_IMAGE:$(git describe --tags --abbrev=0) .
|
||||
- docker push $CI_REGISTRY_IMAGE
|
Loading…
Reference in a new issue