Skip to content

test(robot): fix test case Test Node ID Change During Backing Image C… #7422

test(robot): fix test case Test Node ID Change During Backing Image C…

test(robot): fix test case Test Node ID Change During Backing Image C… #7422

Workflow file for this run

name: build
on:
push:
branches:
- master
- v*
tags:
- v*
pull_request:
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
# Run ci
- name: Run ci
run: make ci
build_images:
name: Build images
runs-on: ubuntu-latest
needs: [validate]
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
# For multi-platform support
- name: Set up QEMU
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
# longhornio/longhorn-manager-test image
- name: Build longhorn-manager-test image
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ./
push: false
platforms: linux/amd64,linux/arm64
tags: longhornio/longhorn-manager-test:dry-run
file: manager/integration/Dockerfile
# longhornio/longhorn-e2e-test image
- name: Build longhorn-e2e-test image
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ./
push: false
platforms: linux/amd64,linux/arm64
tags: longhornio/longhorn-e2e-test:dry-run
file: e2e/Dockerfile
build_push_images:
name: Build and push images
runs-on: ubuntu-latest
needs: build_images
if: ${{ startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
# For multi-platform support
- name: Set up QEMU
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Declare branch
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV"
- name: Login to Docker Hub
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# longhorn-manager-test image
- name: Build and push longhorn-manager-test image with branch head
if: ${{ startsWith(github.ref, 'refs/heads/') }}
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ./
push: true
platforms: linux/amd64,linux/arm64
tags: longhornio/longhorn-manager-test:${{ env.branch }}-head
file: manager/integration/Dockerfile
- name: Build and push longhorn-manager-test image with git tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ./
push: true
platforms: linux/amd64,linux/arm64
tags: longhornio/longhorn-manager-test:${{ github.ref_name }}
file: manager/integration/Dockerfile
# longhorn-e2e-test image
- name: Build and push longhorn-e2e-test image with branch head
if: ${{ startsWith(github.ref, 'refs/heads/') }}
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ./
push: true
platforms: linux/amd64,linux/arm64
tags: longhornio/longhorn-e2e-test:${{ env.branch }}-head
file: e2e/Dockerfile
- name: Build and push longhorn-e2e-test image with git tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ./
push: true
platforms: linux/amd64,linux/arm64
tags: longhornio/longhorn-e2e-test:${{ github.ref_name }}
file: e2e/Dockerfile