Use gitea.head_ref to switch to the correct-branch
Some checks failed
build-docker-imge / Build the docker container (push) Failing after 5s
Some checks failed
build-docker-imge / Build the docker container (push) Failing after 5s
This commit is contained in:
parent
bc43124b16
commit
374a3638cb
|
@ -11,13 +11,13 @@ jobs:
|
|||
- name: "Print env"
|
||||
run: echo WORKSPACE
|
||||
- name: "Git clone"
|
||||
run: git clone https://git.kocoder.xyz/${{ gitea.repository }}.git
|
||||
run: git clone ${{ gitea.server_url }}${{ gitea.repository }}.git
|
||||
- name: "LS"
|
||||
run: ls -lisa
|
||||
- name: "LS ECHO"
|
||||
run: echo "$(ls)" "${{ gitea.repository }}" "${{ gitea.* }}""
|
||||
run: echo "$(ls)" "${{ gitea.repository }}" "${{ gitea.head_ref }}""
|
||||
- name: "Git switch"
|
||||
run: git checkout ${{ gitea.ref }}"
|
||||
run: git checkout ${{ gitea.head_ref }}"
|
||||
|
||||
- uses: aevea/action-kaniko@master
|
||||
name: Run Kaniko to build our docker container.
|
||||
|
|
Loading…
Reference in New Issue
Block a user