diff --git a/Jenkinsfile b/Jenkinsfile index e07aa12..87ef737 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,14 +42,13 @@ pipeline { stage('Build') { steps { script { image = docker.build( - "${params.IMAGE_NAME}:${params.IMAGE_TAG ?: GIT_COMMIT.take(8)}", + "${params.IMAGE_NAME}:${params.IMAGE_TAG ?: GIT_REF}", "--build-arg='GIT_COMMIT=${GIT_COMMIT.take(8)}' ." ) } } } stage('Push') { - when { expression { params.IMAGE_TAG != '' } } steps { script { withDockerRegistry([ credentialsId: params.DOCKER_CRED, url: params.DOCKER_REGISTRY_URL diff --git a/README.md b/README.md index 879d89b..b7f5e99 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@ Strapi comes with a full featured [Command Line Interface](https://docs.strapi.i ### `develop` Start your Strapi application with autoReload enabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-develop) - ``` npm run develop # or @@ -52,6 +51,6 @@ Feel free to check out the [Strapi GitHub repository](https://github.com/strapi/ - [Forum](https://forum.strapi.io/) - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members. - [Awesome Strapi](https://github.com/strapi/awesome-strapi) - A curated list of awesome things related to Strapi. ---- +---- 🤫 Psst! [Strapi is hiring](https://strapi.io/careers).