Skip to content

Update deprecated GitHub actions #470

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

Merged
merged 1 commit into from
Feb 15, 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
8 changes: 4 additions & 4 deletions .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

- name: Checkout common repo code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'project-codeflare/codeflare-common'
ref: 'main'
path: 'common'

- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20

Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
output-directory: ${CODEFLARE_TEST_OUTPUT_DIR}

- name: Upload logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always() && steps.deploy.outcome == 'success'
with:
name: logs
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/mnist-job-test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@ jobs:
- uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20

- name: Login to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.QUAY_ID }}
password: ${{ secrets.QUAY_TOKEN }}
registry: quay.io
id: podman-login-quay
run: |
podman login --username ${{ secrets.QUAY_ID }} --password ${{ secrets.QUAY_TOKEN }} quay.io

- name: Image Build and Push
run: |
make image-mnist-job-test-push

- name: Logout from Quay.io
if: always() && steps.podman-login-quay.outcome == 'success'
run: |
podman logout quay.io
8 changes: 4 additions & 4 deletions .github/workflows/olm_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ jobs:
CODEFLARE_TEST_TIMEOUT_LONG: "10m"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetching also previous commits to get tags

- name: Checkout common repo code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'project-codeflare/codeflare-common'
ref: 'main'
path: 'common'

- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20

Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
output-directory: ${CODEFLARE_TEST_OUTPUT_DIR}

- name: Upload logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always() && steps.deploy.outcome == 'success'
with:
name: logs
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/operator-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,25 @@ jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20

- name: Login to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.QUAY_ID }}
password: ${{ secrets.QUAY_TOKEN }}
registry: quay.io
id: podman-login-quay
run: |
podman login --username ${{ secrets.QUAY_ID }} --password ${{ secrets.QUAY_TOKEN }} quay.io

- name: Image Build
run: |
make build
make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:dev
make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:dev

- name: Logout from Quay.io
if: always() && steps.podman-login-quay.outcome == 'success'
run: |
podman logout quay.io
6 changes: 3 additions & 3 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
volumes:
- /cache
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20

- name: Activate cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/go.sum', '.pre-commit-config.yaml') }}
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/tag-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ jobs:
PR_BRANCH_NAME: adjustments-release-${{ github.event.inputs.version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20

Expand All @@ -79,7 +79,7 @@ jobs:
GITHUB_TOKEN: ${{ github.TOKEN }}

- name: Activate cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/go.sum', '.pre-commit-config.yaml') }}
Expand Down Expand Up @@ -108,11 +108,9 @@ jobs:
shell: bash

- name: Login to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.QUAY_ID }}
password: ${{ secrets.QUAY_TOKEN }}
registry: quay.io
id: podman-login-quay
run: |
podman login --username ${{ secrets.QUAY_ID }} --password ${{ secrets.QUAY_TOKEN }} quay.io

- name: Align go.mod and go.sum dependencies for released components
run: |
Expand Down Expand Up @@ -140,7 +138,7 @@ jobs:

- name: Commit changes in the code back to repository
id: create-pr-branch
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update dependency versions for release ${{ github.event.inputs.version }}
file_pattern: 'README.md *.yaml Makefile go.mod go.sum *.env'
Expand Down Expand Up @@ -199,3 +197,8 @@ jobs:
GH_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
OPERATORS_REPO_FORK_ORG: ${{ github.event.inputs.community-operators-prod-fork-organization }}
OPERATORS_REPO_ORG: ${{ github.event.inputs.community-operators-prod-organization }}

- name: Logout from Quay.io
if: always() && steps.podman-login-quay.outcome == 'success'
run: |
podman logout quay.io
6 changes: 3 additions & 3 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
volumes:
- /cache
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20

- name: Activate cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/go.sum', '.pre-commit-config.yaml') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/verify_generated_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
verify-imports:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20
- name: Verify that imports are organized
Expand All @@ -31,9 +31,9 @@ jobs:
verify-manifests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: v1.20
- name: Verify that the latest WebhookConfigurations, ClusterRoles, and CustomResourceDefinitions have been generated
Expand Down