Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
fix branchane,
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsiaw committed May 29, 2024
1 parent 9b2edb6 commit d8b2f06
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker-branch-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
name: Login to Docker Hub
- name: extract_branch
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: degicadev
password: ${{ secrets.DOCKERHUB_PAT }}
- name: setup
run: |-
docker build . -t degicadev/kaiser:branch-${{ github.head_ref }}
docker push degicadev/kaiser:branch-${{ github.head_ref }}
docker build . -t degicadev/kaiser:branch-${{ steps.extract_branch.outputs.branch }}
docker push degicadev/kaiser:branch-${{ steps.extract_branch.outputs.branch }}
'on':
push:
Expand Down

0 comments on commit d8b2f06

Please sign in to comment.