Skip to content

Commit 1fce0d9

Browse files
committed
Build image using docker build command
1 parent e725393 commit 1fce0d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pipeline {
22
agent any
33
tools {
4-
nodejs 'node23'
4+
nodejs 'node23'
55
}
66
stages {
77
stage('Install Dependencies') {
@@ -56,7 +56,7 @@ pipeline {
5656
steps {
5757
script {
5858
sh 'echo "Creating Image..."'
59-
docker.build("my-image:${env.BUILD_ID}")
59+
sh 'docker build . -t app'
6060
// Create manifest file for container
6161
sh '''cat <<EOF > app.yaml
6262
apiVersion: apps/v1
@@ -75,7 +75,7 @@ pipeline {
7575
spec:
7676
containers:
7777
- name: app
78-
image: my-image:${env.BUILD_ID}
78+
image: app
7979
ports:
8080
- containerPort: 3000
8181
EOF'''

0 commit comments

Comments
 (0)