Skip to content

Commit

Permalink
Add build args
Browse files Browse the repository at this point in the history
  • Loading branch information
yaalsn committed Jan 23, 2024
1 parent 3d1a3b8 commit 8031962
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,21 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Get the date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

- name: Build and push k8s
if: ${{ github.event.inputs.dockerfile == 'Dockerfile.kubernetes' }}
uses: docker/build-push-action@v5
with:
push: true
tags: streamnative/apache-pulsar-grafana-dashboard-k8s:${{ inputs.version }}
file: ${{ inputs.dockerfile }}
build-args: |
BUILD_DATE=${{ steps.date.outputs.date }}
VCS_REF=v${{ inputs.version }}
VERSION={{ inputs.version }}
- name: Build and push private
if: ${{ github.event.inputs.dockerfile == 'Dockerfile.private' }}
Expand All @@ -42,3 +50,7 @@ jobs:
push: true
tags: streamnative/private-cloud-grafana:${{ inputs.version }}
file: ${{ inputs.dockerfile }}
build-args: |
BUILD_DATE=${{ steps.date.outputs.date }}
VCS_REF=v${{ inputs.version }}
VERSION={{ inputs.version }}

0 comments on commit 8031962

Please sign in to comment.