Skip to content

Commit

Permalink
Update dependencies in CI (#106)
Browse files Browse the repository at this point in the history
Update dependencies in CI

- docker/setup-buildx-action@v3
- docker/login-action@v3
- docker/build-push-action@v5
- ubuntu-20.04 -> ubuntu-22.04
- actions/setup-go@v5
- CINDER_CSI_CHART_VERSION: 2.27.3
- MANILA_CSI_CHART_VERSION: 2.27.3
- helm/[email protected]
- kind v0.20.0
- helm v3.14.1
- EmilienM/[email protected]
- Openstack version stable/2023.2

Signed-off-by: Ondrej Vasko <[email protected]>
  • Loading branch information
Lirt authored Feb 19, 2024
1 parent 831b9e8 commit 913a092
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5
with:
push: true
tags: "lirt/velero-plugin-for-openstack:${{ github.ref_name }}"
Expand Down
39 changes: 20 additions & 19 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on: [pull_request]
jobs:
lint:
name: "Linters (go v${{ matrix.go-version }})"
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [ '1.20' ]
steps:
- name: Checkout velero-plugin-for-openstack
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Check formatting
Expand All @@ -30,15 +30,15 @@ jobs:
unit-test:
name: "Unit tests (go v${{ matrix.go-version }})"
needs: lint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [ '1.20' ]
steps:
- name: Checkout velero-plugin-for-openstack
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run unit tests
Expand All @@ -47,7 +47,7 @@ jobs:
integration-test:
name: "Integration tests (go v${{ matrix.go-version }})"
needs: unit-test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [ '1.20' ]
Expand All @@ -57,19 +57,19 @@ jobs:
VELERO_CHART_VERSION: 4.0.1
VELERO_RESTORE_NAME: my-test-restore-01
VELERO_BACKUP_NAME: my-test-backup-01
# From tag 1.25.0
CINDER_CSI_CHART_VERSION: 2.2.0
MANILA_CSI_CHART_VERSION: 2.2.0
# From tag 1.27.x
CINDER_CSI_CHART_VERSION: 2.27.3
MANILA_CSI_CHART_VERSION: 2.27.3
DOCKER_IMAGE_NAME: velero-plugin-for-openstack
SWIFT_CONTAINER_NAME: my-swift-container
TESTS_DIRECTORY: tests/actions/integration-tests
steps:
- name: Checkout velero-plugin-for-openstack
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build Docker image
Expand All @@ -83,10 +83,10 @@ jobs:
--load \
.
- name: Install Kind
uses: helm/kind-action@v1.4.0
uses: helm/kind-action@v1.9.0
with:
# Kubernetes 1.25.x
version: v0.16.0
# Kubernetes 1.27.x
version: v0.20.0
cluster_name: kind
wait: 120s
- name: Load new velero-plugin-for-openstack image to kind cluster
Expand All @@ -95,17 +95,17 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: 'v3.10.3'
version: 'v3.14.1'
- name: Install Velero CLI
run: |
wget --quiet "https://github.com/vmware-tanzu/velero/releases/download/v${VELERO_CLI_VERSION}/velero-v${VELERO_CLI_VERSION}-linux-amd64.tar.gz"
tar -zxvf "velero-v${VELERO_CLI_VERSION}-linux-amd64.tar.gz"
sudo mv "velero-v${VELERO_CLI_VERSION}-linux-amd64/velero" /usr/local/bin/velero
chmod 750 /usr/local/bin/velero
- name: Deploy DevStack
uses: EmilienM/devstack-action@v0.11
uses: EmilienM/devstack-action@v0.14
with:
branch: 'stable/yoga'
branch: 'stable/2023.2'
enable_workaround_docker_io: 'false'
conf_overrides: |
SWIFT_ENABLE_TEMPURLS=True
Expand All @@ -117,7 +117,7 @@ jobs:
CINDER_ISCSI_HELPER=tgtadm
enable_plugin manila https://github.com/openstack/manila stable/yoga
enable_plugin manila https://github.com/openstack/manila stable/2023.2
# LVM Backend config options
MANILA_SERVICE_IMAGE_ENABLED=False
SHARE_DRIVER=manila.share.drivers.lvm.LVMShareDriver
Expand All @@ -135,6 +135,7 @@ jobs:
- name: Prepare Swift container for velero backups
run: |
source "${{ github.workspace }}/devstack/openrc"
source "/opt/stack/data/venv/bin/activate"
SWIFT_TMP_URL_KEY=$(dd if=/dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
swift post "${SWIFT_CONTAINER_NAME}"
swift post -m "Temp-URL-Key:${SWIFT_TMP_URL_KEY}"
Expand Down

0 comments on commit 913a092

Please sign in to comment.