diff --git a/.github/workflows/e2e_tests.yaml b/.github/workflows/e2e_tests.yaml index 0786c290c..0fc1ec88b 100644 --- a/.github/workflows/e2e_tests.yaml +++ b/.github/workflows/e2e_tests.yaml @@ -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 @@ -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 diff --git a/.github/workflows/mnist-job-test-image.yml b/.github/workflows/mnist-job-test-image.yml index 768104424..4323bd5dd 100644 --- a/.github/workflows/mnist-job-test-image.yml +++ b/.github/workflows/mnist-job-test-image.yml @@ -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 diff --git a/.github/workflows/olm_tests.yaml b/.github/workflows/olm_tests.yaml index 6889604bb..aa8a3b172 100644 --- a/.github/workflows/olm_tests.yaml +++ b/.github/workflows/olm_tests.yaml @@ -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 @@ -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 diff --git a/.github/workflows/operator-image.yml b/.github/workflows/operator-image.yml index 0c155be1d..8c30a8c17 100644 --- a/.github/workflows/operator-image.yml +++ b/.github/workflows/operator-image.yml @@ -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 diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 13c4c7fca..2ca5869c6 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -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') }} diff --git a/.github/workflows/tag-and-build.yml b/.github/workflows/tag-and-build.yml index f04d43d67..9dc290c48 100644 --- a/.github/workflows/tag-and-build.yml +++ b/.github/workflows/tag-and-build.yml @@ -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 @@ -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') }} @@ -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: | @@ -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' @@ -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 diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 39ab0ef0f..747cee03d 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -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') }} diff --git a/.github/workflows/verify_generated_files.yml b/.github/workflows/verify_generated_files.yml index e2fa269cc..9027c1aad 100644 --- a/.github/workflows/verify_generated_files.yml +++ b/.github/workflows/verify_generated_files.yml @@ -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 @@ -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