From 240f3955970750ff2448f6514688e474316ec77d Mon Sep 17 00:00:00 2001 From: akash2237778 Date: Mon, 13 Jan 2025 21:53:15 +0530 Subject: [PATCH] Added Pubgrade-updater also --- .github/workflows/main.yaml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e0f66aa..dda6f72 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -16,8 +16,8 @@ jobs: - name: Generate tag run: | echo "TAG=$(date '+%Y%m%d')" >> $GITHUB_ENV - - name: Build and publish image - id: docker + - name: Build and publish Pubgrade image + id: pubgrade-image uses: philips-software/docker-ci-scripts@v5.0.0 with: dockerfile: . @@ -29,9 +29,22 @@ jobs: REGISTRY_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}" DOCKER_ORGANIZATION: ${{ secrets.DOCKERHUB_ORG }} GITHUB_ORGANIZATION: ${{ github.repository_owner }} - PUSH_ON_GIT_TAG: true + - name: Build and publish Pubgrade-Updater image + id: pubgrade-updater-image + uses: philips-software/docker-ci-scripts@v5.0.0 + with: + dockerfile: build-complete-updater/Dockerfile + image-name: "pubgrade-updater" + tags: "latest ${{ env.TAG }}" + push-branches: "github_actions {{ github.event.repository.default_branch }}$" + env: + REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_LOGIN }} + REGISTRY_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}" + DOCKER_ORGANIZATION: ${{ secrets.DOCKERHUB_ORG }} + GITHUB_ORGANIZATION: ${{ github.repository_owner }} - name: Verify that image was pushed run: | echo "Push indicator: ${{ steps.docker.outputs.push-indicator }}" echo "# Set to 'true' if image was pushed, empty string otherwise" - test "${{ steps.docker.outputs.push-indicator }}" == "true" + test "${{ steps.pubgrade-image.outputs.push-indicator }}" == "true" + test "${{ steps.pubgrade-updater-image.outputs.push-indicator }}" == "true"