We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e725393 commit 1fce0d9Copy full SHA for 1fce0d9
Jenkinsfile
@@ -1,7 +1,7 @@
1
pipeline {
2
agent any
3
tools {
4
- nodejs 'node23'
+ nodejs 'node23'
5
}
6
stages {
7
stage('Install Dependencies') {
@@ -56,7 +56,7 @@ pipeline {
56
steps {
57
script {
58
sh 'echo "Creating Image..."'
59
- docker.build("my-image:${env.BUILD_ID}")
+ sh 'docker build . -t app'
60
// Create manifest file for container
61
sh '''cat <<EOF > app.yaml
62
apiVersion: apps/v1
@@ -75,7 +75,7 @@ pipeline {
75
spec:
76
containers:
77
- name: app
78
- image: my-image:${env.BUILD_ID}
+ image: app
79
ports:
80
- containerPort: 3000
81
EOF'''
0 commit comments