-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct and update workflows so we can enable Actions (#171)
The existing workflows are out of date and insecure. This change updates the relevant workflows to the current state of the repository, corrects some issues, and disables workflows that will be handled through other means.
- Loading branch information
Showing
13 changed files
with
132 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
--- | ||
name: External E2E Test | ||
#--- | ||
#name: External E2E Test | ||
|
||
on: | ||
workflow_dispatch: | ||
#on: | ||
#workflow_dispatch: | ||
|
||
jobs: | ||
Run-external-e2e-test: | ||
name: Run External E2E Test | ||
runs-on: ubuntu-latest | ||
container: ubuntu:18.04 | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.19 | ||
id: go | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
- name: Install CA and curl | ||
run: | | ||
apt update -y | ||
apt install -y --no-install-recommends curl ca-certificates | ||
update-ca-certificates | ||
- name: Install ginkgo | ||
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest | ||
- name: Set up kubectl | ||
run: | | ||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/\ | ||
release/stable.txt)/bin/linux/amd64/kubectl" -o kubectl | ||
chmod +x kubectl | ||
cp ./kubectl /usr/bin/ | ||
mkdir ~/.kube | ||
echo ${{ secrets.KUBE_CONFIG }} | base64 > ~/.kube/config | ||
- name: Run External E2E Test | ||
run: test/external-e2e/run.sh | ||
#jobs: | ||
#Run-external-e2e-test: | ||
#name: Run External E2E Test | ||
#runs-on: ubuntu-latest | ||
#container: ubuntu:18.04 | ||
#steps: | ||
#- name: Set up Go 1.x | ||
##uses: actions/setup-go@v2 | ||
#with: | ||
#go-version: '1.23' | ||
#id: go | ||
#- name: Check out code into the Go module directory | ||
#uses: actions/checkout@v2 | ||
#- name: Install CA and curl | ||
#run: | | ||
#apt update -y | ||
#apt install -y --no-install-recommends curl ca-certificates | ||
#update-ca-certificates | ||
#- name: Install ginkgo | ||
#run: go install github.com/onsi/ginkgo/v2/ginkgo@latest | ||
#- name: Set up kubectl | ||
#run: | | ||
#curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/\ | ||
#release/stable.txt)/bin/linux/amd64/kubectl" -o kubectl | ||
#chmod +x kubectl | ||
#cp ./kubectl /usr/bin/ | ||
#mkdir ~/.kube | ||
#echo ${{ secrets.KUBE_CONFIG }} | base64 > ~/.kube/config | ||
#- name: Run External E2E Test | ||
#run: test/external-e2e/run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
--- | ||
name: Integration Test on AKS | ||
#--- | ||
#name: Integration Test on AKS | ||
|
||
on: | ||
#on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [main] | ||
pull_request_target: | ||
branches: [main] | ||
types: [labeled] | ||
#push: | ||
#branches: [main] | ||
#pull_request: | ||
#branches: [main] | ||
#types: [labeled] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
#workflow_dispatch: | ||
|
||
jobs: | ||
Run-Integration-Test-on-AKS: | ||
if: contains(github.event.pull_request.labels.*.name, 'safe to test') | ||
name: Run Integration Test on AKS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.19 | ||
id: go | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Build Code | ||
run: | | ||
make azurelustre | ||
cp ./_output/azurelustreplugin ./test/integration_aks/image/ | ||
- name: Docker login | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ secrets.TEST_ACR_URI }} | ||
username: ${{ secrets.TEST_ACR_USERNAME }} | ||
password: ${{ secrets.TEST_ACR_PASSWORD }} | ||
- name: Build and push integration test container | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./test/integration_aks/image | ||
push: true | ||
tags: ${{ secrets.TEST_ACR_URI }}/azurelustre-csi-integration-test:latest | ||
- name: Run integration test | ||
run: | | ||
./hack/verify-integration-test-aks.sh | ||
env: | ||
kube_config: ${{ secrets.KUBE_CONFIG }} | ||
test_acr_uri: ${{ secrets.TEST_ACR_URI }} | ||
lustre_fs_name: ${{ secrets.LUSTRE_FS_NAME }} | ||
lustre_fs_ip: ${{ secrets.LUSTRE_FS_IP }} | ||
#jobs: | ||
#Run-Integration-Test-on-AKS: | ||
#if: contains(github.event.pull_request.labels.*.name, 'safe to test') | ||
#name: Run Integration Test on AKS | ||
#runs-on: ubuntu-latest | ||
#steps: | ||
#- name: Set up Go 1.x | ||
#uses: actions/setup-go@v2 | ||
#with: | ||
#go-version: '1.23' | ||
#id: go | ||
#- name: Check out code | ||
#uses: actions/checkout@v2 | ||
#with: | ||
#ref: ${{ github.event.pull_request.head.sha }} | ||
#- name: Build Code | ||
#run: | | ||
#make azurelustre | ||
#cp ./_output/azurelustreplugin ./test/integration_aks/image/ | ||
#- name: Docker login | ||
#uses: docker/login-action@v1 | ||
#with: | ||
#registry: ${{ secrets.TEST_ACR_URI }} | ||
#username: ${{ secrets.TEST_ACR_USERNAME }} | ||
#password: ${{ secrets.TEST_ACR_PASSWORD }} | ||
#- name: Build and push integration test container | ||
#uses: docker/build-push-action@v2 | ||
#with: | ||
#context: ./test/integration_aks/image | ||
#push: true | ||
#tags: ${{ secrets.TEST_ACR_URI }}/azurelustre-csi-integration-test:latest | ||
#- name: Run integration test | ||
#run: | | ||
#./hack/verify-integration-test-aks.sh | ||
#env: | ||
#kube_config: ${{ secrets.KUBE_CONFIG }} | ||
#test_acr_uri: ${{ secrets.TEST_ACR_URI }} | ||
#lustre_fs_name: ${{ secrets.LUSTRE_FS_NAME }} | ||
#lustre_fs_ip: ${{ secrets.LUSTRE_FS_IP }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.