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

build: Update workflows to accommodate repository name and default branch changes #126

Merged
merged 2 commits into from
Jan 22, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/backward-compatibility.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: backward-compatibility-5mins
on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
workflow_dispatch:
jobs:
integration:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/containerd.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: containerd-11mins
on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
workflow_dispatch:
jobs:
integration:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cri-o.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: cri-o-10mins
on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
workflow_dispatch:
jobs:
integration:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/devcontainer-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Dev Container Build and Push Image

on:
push:
branches:
master
branches: [main]
paths:
- .github/workflows/devcontainer-build-and-push.yml
- '.github/.devcontainer/**'
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/images-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ name: Create and publish the container image
on:
push:
branches:
- '*'
tags:
- 'v*'

env:
BASE_REPOSITORY: warm-metal/csi-driver-image
BASE_DEFAULT_BRANCH: master
BASE_REPOSITORY: warm-metal/container-image-csi-driver
BASE_DEFAULT_BRANCH: main
BASE_IMAGE_NAME: warmmetal/csi-image
FORK_IMAGE_NAME: ghcr.io/${{ github.repository }}

permissions:
packages: write

jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/images-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:
packages: write

env:
BASE_REPOSITORY: warm-metal/csi-driver-image
BASE_REPOSITORY: warm-metal/container-image-csi-driver

jobs:
clean-ghcr:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/metrics.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: test-metrics-5m
on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
workflow_dispatch:
jobs:
integration:
Expand Down Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Test metrics
run: ./test/integration/test-metrics.sh
- name: Uninstall the CSI Driver
run: helm uninstall -n kube-system ${HELM_NAME} --wait
run: helm uninstall -n kube-system ${HELM_NAME} --wait
4 changes: 2 additions & 2 deletions .github/workflows/restart-ds-containerd.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: restart-ds-containerd-5mins
on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
workflow_dispatch:
jobs:
integration:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/restart-ds-crio.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: restart-ds-crio-8mins
on:
push:
branches: [master]
branches: [main]
pull_request:
branches: [master]
branches: [main]
workflow_dispatch:
jobs:
integration:
Expand Down