Skip to content

Commit

Permalink
get simple branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
MJRichardson committed Nov 4, 2023
1 parent 471642d commit c3a45e8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
Expand Down Expand Up @@ -56,16 +59,11 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}.${{ github.run_id }}
tags: ${{ steps.branch-name.outputs.current_branch }}.${{ github.run_id }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: echo tag
run: echo "$IMAGE_TAG"
env:
IMAGE_TAG: ${{ steps.meta.outputs.tags }}

- name: Login to Octopus
uses: OctopusDeploy/login@v1
with:
Expand All @@ -77,4 +75,4 @@ jobs:
with:
project: 'SHIPPED23'
release_number: ${{ steps.meta.outputs.tags }}
package_version: ${{ steps.meta.outputs.tags }}.${{ github.run_id }}
package_version: ${{ steps.branch-name.outputs.current_branch }}.${{ github.run_id }}

0 comments on commit c3a45e8

Please sign in to comment.