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 Jun 7, 2024
1 parent df3e8f1 commit 6d66f1e
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 6d66f1e

Please sign in to comment.