Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows: fix checkout of the code on podvm #1591

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/e2e_on_pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
with:
registry: ghcr.io/${{ github.repository_owner }}
image_tag: ci-pr${{ github.event.number }}
git_ref: ${{ github.event.pull_request.head.sha }}
secrets: inherit

podvm_binaries:
Expand All @@ -57,6 +58,7 @@ jobs:
with:
registry: ghcr.io/${{ github.repository_owner }}
image_tag: ci-pr${{ github.event.number }}
git_ref: ${{ github.event.pull_request.head.sha }}
secrets: inherit

podvm:
Expand All @@ -65,6 +67,7 @@ jobs:
with:
registry: ghcr.io/${{ github.repository_owner }}
image_tag: ci-pr${{ github.event.number }}
git_ref: ${{ github.event.pull_request.head.sha }}
secrets: inherit

# Build and push the cloud-api-adaptor image
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/podvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
default: ''
required: false
type: string
git_ref:
description: Git ref to checkout the cloud-api-adaptor repository.
required: true
type: string

jobs:
build:
Expand All @@ -34,6 +38,9 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: "${{ inputs.git_ref }}"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/podvm_binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
default: ''
required: false
type: string
git_ref:
description: Git ref to checkout the cloud-api-adaptor repository.
required: true
type: string

jobs:
build:
Expand All @@ -29,6 +33,9 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: "${{ inputs.git_ref }}"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/podvm_builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
default: ''
required: false
type: string
git_ref:
description: Git ref to checkout the cloud-api-adaptor repository.
required: true
type: string

jobs:
build:
Expand All @@ -27,6 +31,9 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: "${{ inputs.git_ref }}"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/podvm_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ on:
jobs:
podvm_builder:
uses: ./.github/workflows/podvm_builder.yaml
with:
git_ref: ${{ github.sha }}
secrets: inherit

podvm_binaries:
needs: [podvm_builder]
uses: ./.github/workflows/podvm_binaries.yaml
with:
git_ref: ${{ github.sha }}
secrets: inherit

podvm:
needs: [podvm_binaries]
uses: ./.github/workflows/podvm.yaml
with:
git_ref: ${{ github.sha }}
secrets: inherit
Loading