Skip to content

Commit

Permalink
Added option to pass repository name (#46)
Browse files Browse the repository at this point in the history
Added option to pass image name in docker publish 

Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia authored Feb 10, 2022
1 parent 0fe7bdd commit 0855b6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions flytetools/.github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: github.actor != 'goreleaserbot'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.bump-version.outputs.tag }}
version: ${{ steps.bump_version.outputs.tag }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -24,7 +24,7 @@ jobs:
id: extract_branch
run: echo "::set-output name=branch_name::$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}})"
- name: Bump version and push tag
id: bump-version
id: bump_version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}
Expand Down
3 changes: 1 addition & 2 deletions flytetools/.github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bump Version
name: Go Releaser

on:
workflow_call:
Expand All @@ -20,7 +20,6 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}
6 changes: 5 additions & 1 deletion flytetools/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: "Version of image"
required: true
type: string
repository:
description: "Repository Name"
required: false
type: string
push:
description: "Push to registry"
required: false
Expand All @@ -33,7 +37,7 @@ jobs:
with:
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
password: "${{ secrets.FLYTE_BOT_PAT }}"
image_name: ${{ github.repository }}
image_name: ${{ inputs.repository }}
image_tag: latest,${{ github.sha }},${{ inputs.version }}
push_git_tag: ${{ inputs.push }}
dockerfile: ${{ inputs.dockerfile }}
Expand Down

0 comments on commit 0855b6a

Please sign in to comment.