From 53b311a9df140ccd1095bd6cdcf926200891ecc8 Mon Sep 17 00:00:00 2001 From: 30hours Date: Mon, 19 Feb 2024 12:18:19 +0000 Subject: [PATCH] Only release a package for blah2, not blah2_api as well --- Jenkinsfile | 4 ---- README.md | 2 -- 2 files changed, 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dab8ebc..762eb14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } diff --git a/README.md b/README.md index ddcd6c8..0f417e7 100644 --- a/README.md +++ b/README.md @@ -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 ```