Skip to content

Commit

Permalink
Optimize GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheEvilOne committed Feb 8, 2022
1 parent 65471c6 commit 027f65f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/on-release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ jobs:
steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Get the Git tag name
id: get-tag-name
run: echo ::set-output name=tag-name::${GITHUB_REF/refs\/tags\/v/}
- name: Update VERSION file
run: |-
echo "v${{ steps.get-tag-name.outputs.tag-name }}" > VERSION
echo "${{ github.ref_name }}" > VERSION
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
Expand All @@ -31,4 +28,4 @@ jobs:
push: true
tags: |
ghcr.io/23technologies/gardener-extension-provider-ionos:latest
ghcr.io/23technologies/gardener-extension-provider-ionos:v${{ steps.get-tag-name.outputs.tag-name }}
ghcr.io/23technologies/gardener-extension-provider-ionos:${{ github.ref_name }}

0 comments on commit 027f65f

Please sign in to comment.