mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-10 12:22:36 +00:00
Merge pull request #3463 from fidencio/wip/fix-kata-deploy-ref-branch
workflows: Use the correct branch ref on test kata-deploy
This commit is contained in:
commit
db451f3c27
31
.github/workflows/kata-deploy-test.yaml
vendored
31
.github/workflows/kata-deploy-test.yaml
vendored
@ -48,7 +48,18 @@ jobs:
|
|||||||
- rootfs-initrd
|
- rootfs-initrd
|
||||||
- shim-v2
|
- shim-v2
|
||||||
steps:
|
steps:
|
||||||
|
# As Github action event `issue_comment` does not provide the right ref
|
||||||
|
# (commit/branch) to be tested, let's use this third part action to work
|
||||||
|
# this limitation around.
|
||||||
|
- name: resolve pr refs
|
||||||
|
id: refs
|
||||||
|
uses: kata-containers/resolve-pr-refs@v0.0.3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ steps.refs.outputs.head_ref }}
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://test.docker.com -o test-docker.sh
|
curl -fsSL https://test.docker.com -o test-docker.sh
|
||||||
@ -75,7 +86,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-asset
|
needs: build-asset
|
||||||
steps:
|
steps:
|
||||||
|
# As Github action event `issue_comment` does not provide the right ref
|
||||||
|
# (commit/branch) to be tested, let's use this third part action to work
|
||||||
|
# this limitation around.
|
||||||
|
- name: resolve pr refs
|
||||||
|
id: refs
|
||||||
|
uses: kata-containers/resolve-pr-refs@v0.0.3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ steps.refs.outputs.head_ref }}
|
||||||
- name: get-artifacts
|
- name: get-artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -94,7 +115,17 @@ jobs:
|
|||||||
needs: create-kata-tarball
|
needs: create-kata-tarball
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
# As Github action event `issue_comment` does not provide the right ref
|
||||||
|
# (commit/branch) to be tested, let's use this third part action to work
|
||||||
|
# this limitation around.
|
||||||
|
- name: resolve pr refs
|
||||||
|
id: refs
|
||||||
|
uses: kata-containers/resolve-pr-refs@v0.0.3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ steps.refs.outputs.head_ref }}
|
||||||
- name: get-kata-tarball
|
- name: get-kata-tarball
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user