mirror of
https://github.com/30hours/blah2.git
synced 2024-11-18 12:33:58 +00:00
Only release a package for blah2, not blah2_api as well
This commit is contained in:
parent
fae3a589ae
commit
53b311a9df
2 changed files with 0 additions and 6 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -5,7 +5,6 @@ pipeline {
|
|||
GHCR_REGISTRY = "ghcr.io"
|
||||
GHCR_TOKEN = credentials('ghcr-login')
|
||||
BLAH2_NAME = "30hours/blah2"
|
||||
BLAH2_API_NAME = "30hours/blah2_api"
|
||||
}
|
||||
|
||||
stages {
|
||||
|
@ -18,7 +17,6 @@ pipeline {
|
|||
steps {
|
||||
echo 'Building the project'
|
||||
sh 'docker build -t $BLAH2_NAME .'
|
||||
sh 'docker build -t $BLAH2_API_NAME --file ./api/Dockerfile ./api'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
|
@ -30,9 +28,7 @@ pipeline {
|
|||
steps {
|
||||
sh 'echo $GHCR_TOKEN_PSW | docker login ghcr.io -u $GHCR_TOKEN_USR --password-stdin'
|
||||
sh 'docker tag $BLAH2_NAME ghcr.io/$BLAH2_NAME'
|
||||
sh 'docker tag $BLAH2_API_NAME ghcr.io/$BLAH2_API_NAME'
|
||||
sh 'docker push ghcr.io/$BLAH2_NAME'
|
||||
sh 'docker push ghcr.io/$BLAH2_API_NAME'
|
||||
sh 'docker logout'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,8 +47,6 @@ Alternatively avoid building and use the pre-built Docker packages;
|
|||
vim docker-compose.yml
|
||||
--- build: .
|
||||
+++ image: ghcr.io/30hours/blah2:latest
|
||||
--- build ./api
|
||||
+++ image: ghcr.io/30hours/blah2_api:latest
|
||||
sudo docker compose up -d
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue