Skip to content

Commit

Permalink
Fix ref extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
perdian committed Feb 5, 2024
1 parent acfc6c0 commit 73cbc95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ jobs:
with:
context: .
file: ./Dockerfile
push: ${{ github.ref_type == 'tag' && startsWith(github.action_ref, 'v') }}
push: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/flightlog:latest
${{ secrets.DOCKERHUB_USERNAME }}/flightlog:${{ github.action_ref }}
${{ secrets.DOCKERHUB_USERNAME }}/flightlog:${{ github.ref_name }}
- name: Create Release
if: ${{ github.ref_type == 'tag' && startsWith(github.action_ref, 'v') }}
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
release_name: ${{ github.ref_name }}
body: |
Release automatically created by GitHub Actions
draft: false
Expand Down

0 comments on commit 73cbc95

Please sign in to comment.