mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-03 02:23:13 +00:00
Merge branch 'dev' into 'main'
Create container pipeline See merge request wlinator/Racu!14
This commit is contained in:
commit
64090b1304
2 changed files with 20 additions and 0 deletions
|
@ -9,6 +9,10 @@ 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=
|
||||
|
|
16
.gitlab-ci.yml
Normal file
16
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
stages:
|
||||
- build
|
||||
|
||||
docker_build:
|
||||
stage: build
|
||||
image: docker:latest
|
||||
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
|
Loading…
Reference in a new issue