Skip to content

Commit

Permalink
build: Update workflows to accommodate repository name and default br…
Browse files Browse the repository at this point in the history
…anch changes (#126)

Signed-off-by: Mriyam Tamuli <[email protected]>
  • Loading branch information
mbtamuli authored Jan 22, 2024
1 parent 8487a8b commit 03636ae
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 18 deletions.
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

0 comments on commit 03636ae

Please sign in to comment.