Skip to content

Commit

Permalink
Update build-publish-jenkins-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas authored Jul 11, 2024
1 parent c659e2e commit 1f139bb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-publish-jenkins-image.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-publish-jenkins-image
name: build-publish-jenkins-image-test
on:
# push:
# branches:
Expand Down Expand Up @@ -44,9 +44,9 @@ jobs:
# NEW_VERSION: $NEW_VERSION
uses: docker/build-push-action@v5
with:
push: true
push: false
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKERHUB_USERNAME }}/jenkins-core-image:${{ env.NEW_VERSION }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/jenkins-core-image:1.033.2
build-args: |
"JENKINS_USER=${{ secrets.JENKINS_USER }}"
"JENKINS_PASS=${{ secrets.JENKINS_PASS }}"
Expand All @@ -56,15 +56,16 @@ jobs:
- name: Build and Publish docker image with latest tag
uses: docker/build-push-action@v5
with:
push: true
push: false
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKERHUB_USERNAME }}/jenkins-core-image:latest
tags: ${{ secrets.DOCKERHUB_USERNAME }}/jenkins-core-image:000.2
build-args: |
"JENKINS_USER=${{ secrets.JENKINS_USER }}"
"JENKINS_PASS=${{ secrets.JENKINS_PASS }}"
"GITHUB_APP_KEY=${{ secrets.GH_APP_KEY }}"
"GITHUB_APP_ID=${{ secrets.GH_APP_ID }}"
- name: check image
run: docker image ls
- name: set up docker and scan docker image for vulnerabilities
uses: docker-practice/actions-setup-docker@master
- run: |
Expand All @@ -81,4 +82,4 @@ jobs:
SUMMARY=$'[jenkins-core-image available here](https://hub.docker.com/r/dockerofkrishnadhas/jenkins-core-image)\n'
SUMMARY+=$'**Job Start 📅 Time:** ${{ env.JOB_START_TIME }}\n'
SUMMARY+=$'**Job End 📅 Time:** ${{ env.JOB_END_TIME }}\n'
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY

0 comments on commit 1f139bb

Please sign in to comment.