Updating image tag and login

This commit is contained in:
Eduardo Vozniak 2023-10-02 14:04:25 -03:00
parent 792d7cd0b8
commit 863c126067
No known key found for this signature in database
GPG Key ID: ACB52F85E23B1C50
2 changed files with 6 additions and 13 deletions

View File

@ -1,14 +1,6 @@
name: Bump Version
description: "This action bumps package version and commits to master"
inputs:
GH_APP_ID:
description: GitHub app (bot) id to retrieve the token the installation token.
required: true
GH_APP_KEY_BASE64:
description: GitHub app (bot) private key in base64 to retrieve the installation token.
required: true
outputs:
version:
description: "The version after the bump"

View File

@ -81,18 +81,19 @@ jobs:
with:
context: ${{ github.workspace }}
push: false
tags: ${{ env.DOCKER_REPO }}:${{ github.run_id }}
tags: docker.eu1.hsdp.io/reporting:${{ github.run_id }}
- name: Bump Version
id: bump-version
uses: ./.github/actions/bump-version
with:
GH_APP_ID: ${{ secrets.REP_GITHUB_APP_ID }}
GH_APP_KEY_BASE64: ${{ secrets.REP_GITHUB_APP_KEY_BASE64 }}
- name: Docker login
run: |
docker login --username '${{ secrets.DOCKER_USER }}' --password '${{ secrets.DOCKER_PSWD }}' '${{ secrets.DOCKER_REPO }}'
- name: Publish Docker image
uses: docker/build-push-action@v4
with:
context: ${{ github.workspace }}
push: true
tags: ${{ env.DOCKER_REPO }}:${{ steps.bump-version.outputs.version }}
tags: docker.eu1.hsdp.io/reporting:${{ steps.bump-version.outputs.version }}