Skip to content

Commit

Permalink
Added Pubgrade-updater also
Browse files Browse the repository at this point in the history
  • Loading branch information
akash2237778 committed Jan 13, 2025
1 parent 216111c commit 240f395
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
dockerfile: .
Expand All @@ -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/[email protected]
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"

0 comments on commit 240f395

Please sign in to comment.