From a9026d9b72936b8b9dd524b28e40e9e95e97a647 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 14:39:46 +0300 Subject: [PATCH 01/52] Build Container Image via github action Signed-off-by: oviner --- .github/workflows/simple.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/simple.yml diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml new file mode 100644 index 00000000000..2401dccf498 --- /dev/null +++ b/.github/workflows/simple.yml @@ -0,0 +1,14 @@ +name: Build Container Image + +on: [push] + +jobs: + run-shell-command: + runs-on: ubuntu-latest + steps: + - name: echo a string + run: echo "Oded 123" + - name: multiline script + run: | + node -v + npm -v From dbd99b255fe896e9f38696aa9a10fca3cf28fd96 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 14:45:39 +0300 Subject: [PATCH 02/52] fix code Signed-off-by: oviner --- .github/workflows/simple.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 2401dccf498..706cb9ffc30 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -1,6 +1,9 @@ name: Build Container Image -on: [push] +on: + push: + branches: + - github_action_container jobs: run-shell-command: From fc93dd5d52b71ea2e513f2ef06154b97204bde2b Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 14:55:28 +0300 Subject: [PATCH 03/52] fix code Signed-off-by: oviner --- .github/workflows/simple.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 706cb9ffc30..2401dccf498 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -1,9 +1,6 @@ name: Build Container Image -on: - push: - branches: - - github_action_container +on: [push] jobs: run-shell-command: From 380d7d223a91189dee6194b3bbf54a80c2232f26 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 14:56:35 +0300 Subject: [PATCH 04/52] fix code Signed-off-by: oviner --- .github/workflows/pr_checks.yml | 34 ----------------------------- .github/workflows/stale.yml | 38 --------------------------------- 2 files changed, 72 deletions(-) delete mode 100644 .github/workflows/pr_checks.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml deleted file mode 100644 index 7ea006e60fd..00000000000 --- a/.github/workflows/pr_checks.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: "PR Checks" -# Triggers the workflow on pull request events -on: pull_request - -jobs: - pr_checks: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: - - 3.8 - - 3.9 - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install ovirt-engine-sdk-python dependencies - run: | - sudo apt update - sudo apt install -y libcurl4-openssl-dev - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox tox-gh-actions - - - name: Test with tox - run: tox diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 6337fc61ded..00000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Mark stale issues and pull requests - -on: - schedule: - # Run every day at 8pm UTC - - cron: '0 20 * * *' - -jobs: - stale: - - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - - steps: - - uses: actions/stale@v4 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 90 - days-before-close: 30 - stale-issue-message: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed in 30 days if no further activity occurs. - stale-pr-message: > - This pull request has been automatically marked as stale because it has not had - recent activity. It will be closed in 30 days if no further activity occurs. - close-issue-message: > - This issue has been automatically closed due to inactivity. - Please re-open if this still requires investigation. - close-pr-message: > - This pull request has been automatically closed due to inactivity. - Please re-open if these changes are still required. - stale-issue-label: 'lifecycle/stale' - stale-pr-label: 'lifecycle/stale' - exempt-issue-labels: 'lifecycle/keepalive' - exempt-pr-labels: 'lifecycle/keepalive' - operations-per-run: 100 From 070ed38e40db72a447fb91a32665e00ee7bcc594 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 15:00:49 +0300 Subject: [PATCH 05/52] fix Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 2401dccf498..c58df3e69e2 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: echo a string - run: echo "Oded 123" + run: echo "Oded 1234" - name: multiline script run: | node -v From 0deebc47f69250da8c4175825a93ac7f7fc3afa3 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 15:47:25 +0300 Subject: [PATCH 06/52] fix code Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index c58df3e69e2..b12c0a47bb1 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -1,6 +1,6 @@ name: Build Container Image -on: [push] +on: pull_request jobs: run-shell-command: From 256ca94a43c83ad2b9f3b0d75e02c75fcc46ff39 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 17:51:52 +0300 Subject: [PATCH 07/52] fix code Signed-off-by: oviner --- .github/workflows/simple.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index b12c0a47bb1..bd69349050f 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,13 +2,19 @@ name: Build Container Image on: pull_request +env: + REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} + IMAGE_REGISTRY: quay.io + REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + jobs: - run-shell-command: + login: + name: Log in to image registry runs-on: ubuntu-latest steps: - - name: echo a string - run: echo "Oded 1234" - - name: multiline script - run: | - node -v - npm -v + - name: Log in to Quay.io + uses: redhat-actions/podman-login@v1 + with: + username: ${{ env.REGISTRY_USER }} + password: ${{ env.REGISTRY_PASSWORD }} + registry: ${{ env.IMAGE_REGISTRY }} From 523d8e087333b464a2b7d4dcce666e69ee15d524 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 17:54:46 +0300 Subject: [PATCH 08/52] fix code1 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index bd69349050f..2bfa72a2add 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -12,7 +12,7 @@ jobs: name: Log in to image registry runs-on: ubuntu-latest steps: - - name: Log in to Quay.io + - name: Log in to Quay.io . uses: redhat-actions/podman-login@v1 with: username: ${{ env.REGISTRY_USER }} From b9b0eb6fb719806c7ce852ebe7581b4a2b1227a0 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 18:09:14 +0300 Subject: [PATCH 09/52] fix2 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 2bfa72a2add..1fcd7db7793 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -1,6 +1,6 @@ name: Build Container Image -on: pull_request +on: [pull_request, push] env: REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} From e059c07f0ba418daa7da37df4771be1f13464896 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 18:24:15 +0300 Subject: [PATCH 10/52] fix2 Signed-off-by: oviner --- .github/workflows/simple.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 1fcd7db7793..410fda0175a 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -5,6 +5,7 @@ on: [pull_request, push] env: REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} IMAGE_REGISTRY: quay.io + REGISTRY_NS: ocsci/ocs-ci-container REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} jobs: @@ -12,9 +13,24 @@ jobs: name: Log in to image registry runs-on: ubuntu-latest steps: - - name: Log in to Quay.io . + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Log in to Quay.io uses: redhat-actions/podman-login@v1 with: username: ${{ env.REGISTRY_USER }} password: ${{ env.REGISTRY_PASSWORD }} registry: ${{ env.IMAGE_REGISTRY }} + + - name: Buildah Action + id: build-image + uses: redhat-actions/buildah-build@v2 + with: + image: ocs-123 + tags: stable1 + containerfiles: | + ./Docker_files/Containerfile.ci + + - name: check image name + run: podman images From 6472b26f97f426a5cd59f5d49f1143f48a5e09a6 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 18:31:26 +0300 Subject: [PATCH 11/52] fix 3 Signed-off-by: oviner --- .github/workflows/simple.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 410fda0175a..f4e507cea6c 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -27,10 +27,17 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: ocs-123 - tags: stable1 + image: ocsci + tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable containerfiles: | ./Docker_files/Containerfile.ci + build-args: | + COMMIT=${{ github.sha }} + BRANCH=${{ env.BRANCH }} + LABEL=${{ github.event.pull_request.head.label }} + HEAD_REF=${{ github.head_ref }} + REF_NAME=${{ github.ref_name }} + REF=${{ github.ref }} - name: check image name run: podman images From 819f2e5020b232d5d80364d3b5ec1464a49b4212 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 18:33:03 +0300 Subject: [PATCH 12/52] fix 4 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index f4e507cea6c..1a4ede3a487 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -30,7 +30,7 @@ jobs: image: ocsci tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable containerfiles: | - ./Docker_files/Containerfile.ci + ./Docker_files/ocsci_container/Containerfile.ci build-args: | COMMIT=${{ github.sha }} BRANCH=${{ env.BRANCH }} From 574d8cdaa671b89ebc911588a3803ef704cf8062 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 18:38:24 +0300 Subject: [PATCH 13/52] fix 5 Signed-off-by: oviner --- .github/workflows/simple.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 1a4ede3a487..67c4059316f 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,6 +2,11 @@ name: Build Container Image on: [pull_request, push] +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + env: REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} IMAGE_REGISTRY: quay.io @@ -9,9 +14,9 @@ env: REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} jobs: - login: - name: Log in to image registry + buildah: runs-on: ubuntu-latest + steps: - name: Checkout repository uses: actions/checkout@v2 From 2bbb1ddeda107fc7b4081b69052679a2f7a49fbe Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 18:53:34 +0300 Subject: [PATCH 14/52] fix 7 Signed-off-by: oviner --- .github/workflows/simple.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 67c4059316f..d53101ee35b 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -32,8 +32,8 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: ocsci - tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable + image: quay.io/ocsci/ocs-ci-container + tags: stable1 containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci build-args: | @@ -46,3 +46,16 @@ jobs: - name: check image name run: podman images + + # Podman Login action (https://github.com/redhat-actions/podman-login) also be used to log in, + # in which case 'username' and 'password' can be omitted. + - name: Push To quay.io + id: push-to-quay + uses: redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} + registry: ${{ env.IMAGE_REGISTRY }}/${{ env.REGISTRY_NS }} + + - name: Print image url + run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" From 39c11283be520323054fb214e0c315f124e99c57 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 1 May 2023 19:00:29 +0300 Subject: [PATCH 15/52] fix 8 Signed-off-by: oviner --- .github/workflows/simple.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index d53101ee35b..9a1299b63ca 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -32,8 +32,8 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: quay.io/ocsci/ocs-ci-container - tags: stable1 + image: ocsci + tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci build-args: | From 821a5c7deed49191cb1ef645b53aeef1baa38c5c Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 3 May 2023 12:45:32 +0300 Subject: [PATCH 16/52] petr check Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 9a1299b63ca..83a07c42080 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs +# This allows a subsequently queued workflow run to interrupt previous runs. concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From 4082582a1007426d9ffee3d579587e2350d2b583 Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 3 May 2023 12:54:51 +0300 Subject: [PATCH 17/52] petr2 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 83a07c42080..9a1299b63ca 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs. +# This allows a subsequently queued workflow run to interrupt previous runs concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From ae43f209f9f578604d3d9102e00bb871046f9787 Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 3 May 2023 12:59:44 +0300 Subject: [PATCH 18/52] petr3 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 9a1299b63ca..83a07c42080 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs +# This allows a subsequently queued workflow run to interrupt previous runs. concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From 1aade2bdef2ae9ee5df2473490b7240c67134808 Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 3 May 2023 13:01:04 +0300 Subject: [PATCH 19/52] petr4 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 83a07c42080..9a1299b63ca 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs. +# This allows a subsequently queued workflow run to interrupt previous runs concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From 67948b35ec6a40eacc811a08ae9cee2a3fecfd89 Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 3 May 2023 13:02:29 +0300 Subject: [PATCH 20/52] petr5 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 9a1299b63ca..83a07c42080 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs +# This allows a subsequently queued workflow run to interrupt previous runs. concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From de50d160717642b1c5ee9500e2b807d25b600be8 Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 3 May 2023 13:06:44 +0300 Subject: [PATCH 21/52] petr 6 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 83a07c42080..9a1299b63ca 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs. +# This allows a subsequently queued workflow run to interrupt previous runs concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From 54c92bb98b50b461b10f4cff59627de165908500 Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 3 May 2023 13:09:50 +0300 Subject: [PATCH 22/52] petr 7 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 9a1299b63ca..83a07c42080 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs +# This allows a subsequently queued workflow run to interrupt previous runs. concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From 210c49fcbc23e9adb18118aca4399b6827485051 Mon Sep 17 00:00:00 2001 From: oviner Date: Wed, 3 May 2023 13:13:47 +0300 Subject: [PATCH 23/52] oded8 Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 83a07c42080..9a1299b63ca 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs. +# This allows a subsequently queued workflow run to interrupt previous runs concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From e3a16285ad71e950330dc364b4230c5dd5c28147 Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 12:12:44 +0300 Subject: [PATCH 24/52] test oded Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 9a1299b63ca..83a07c42080 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,7 +2,7 @@ name: Build Container Image on: [pull_request, push] -# This allows a subsequently queued workflow run to interrupt previous runs +# This allows a subsequently queued workflow run to interrupt previous runs. concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true From 39c25da8697aa77b27cd019a32d8e57d2017ba8d Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 16:23:51 +0300 Subject: [PATCH 25/52] oded55 Signed-off-by: oviner --- .github/workflows/simple.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 83a07c42080..3dd009d82f4 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -1,6 +1,6 @@ name: Build Container Image -on: [pull_request, push] +on: [pull_request] # This allows a subsequently queued workflow run to interrupt previous runs. concurrency: @@ -10,7 +10,7 @@ concurrency: env: REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} IMAGE_REGISTRY: quay.io - REGISTRY_NS: ocsci/ocs-ci-container + REGISTRY_NS: ocsci REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} jobs: @@ -26,13 +26,13 @@ jobs: with: username: ${{ env.REGISTRY_USER }} password: ${{ env.REGISTRY_PASSWORD }} - registry: ${{ env.IMAGE_REGISTRY }} + registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} - name: Buildah Action id: build-image uses: redhat-actions/buildah-build@v2 with: - image: ocsci + image: ocs-ci-container tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From a28dd522aad09c812a46cb0e7a0af10d04349734 Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 16:33:38 +0300 Subject: [PATCH 26/52] 123 test Signed-off-by: oviner --- .github/workflows/simple.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 3dd009d82f4..8ccf0770a4d 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -9,9 +9,10 @@ concurrency: env: REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} + REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} IMAGE_REGISTRY: quay.io REGISTRY_NS: ocsci - REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + REGISTRY_IMAGE: ocs-ci-container jobs: buildah: @@ -26,13 +27,13 @@ jobs: with: username: ${{ env.REGISTRY_USER }} password: ${{ env.REGISTRY_PASSWORD }} - registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} + registry: ${{ env.REGISTRY }} - name: Buildah Action id: build-image uses: redhat-actions/buildah-build@v2 with: - image: ocs-ci-container + image: env.REGISTRY_IMAGE tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From f6892f9f5ce909494a67d3f2f58e40f9b6a32bb3 Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 16:35:04 +0300 Subject: [PATCH 27/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 8ccf0770a4d..7e936db38eb 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -10,7 +10,7 @@ concurrency: env: REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} - IMAGE_REGISTRY: quay.io + REGISTRY: quay.io REGISTRY_NS: ocsci REGISTRY_IMAGE: ocs-ci-container From ea5fd3a5ae3a6445357882ed47e2ca7c5bebbbc9 Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 16:41:09 +0300 Subject: [PATCH 28/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 7e936db38eb..7a98dcc119d 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -33,8 +33,8 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: env.REGISTRY_IMAGE - tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable + image: ${{ env.IMAGE_REGISTRY }}/${{ env.REGISTRY_NS }}/{{ env.REGISTRY_IMAGE }} + tags: stable containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci build-args: | From aa675c5b9ea55cc2ff8bb6244cb96ff37d539621 Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 16:42:45 +0300 Subject: [PATCH 29/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 7a98dcc119d..1386a4c5038 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -33,8 +33,7 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: ${{ env.IMAGE_REGISTRY }}/${{ env.REGISTRY_NS }}/{{ env.REGISTRY_IMAGE }} - tags: stable + tags: ${{ env.IMAGE_REGISTRY }}/${{ env.REGISTRY_NS }}/{{ env.REGISTRY_IMAGE }}/stable containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci build-args: | From 0c2192009747a47465100c8886bb51aa4637a733 Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 16:46:02 +0300 Subject: [PATCH 30/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 1386a4c5038..01ff42dd8fc 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -33,7 +33,8 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - tags: ${{ env.IMAGE_REGISTRY }}/${{ env.REGISTRY_NS }}/{{ env.REGISTRY_IMAGE }}/stable + image: ${{ env.REGISTRY_IMAGE }} + tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci build-args: | From 9f8b50d8d5748d32e6cbd4ec2e2d2ce102613c1a Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 16:48:48 +0300 Subject: [PATCH 31/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 01ff42dd8fc..7dcecf83e05 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -34,7 +34,7 @@ jobs: uses: redhat-actions/buildah-build@v2 with: image: ${{ env.REGISTRY_IMAGE }} - tags: ${{ github.event.pull_request.head.label || github.ref_name || github.run_id }} ${{ github.sha }} latest stable + tags: quay.io/ocsci/ocs-ci-container:test1 containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci build-args: | From bb3b8af253c3ef353cae6dd9d8514fa2e7a583d8 Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 17:03:24 +0300 Subject: [PATCH 32/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 7dcecf83e05..fc23be2cb02 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -2,11 +2,6 @@ name: Build Container Image on: [pull_request] -# This allows a subsequently queued workflow run to interrupt previous runs. -concurrency: - group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' - cancel-in-progress: true - env: REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} @@ -34,16 +29,9 @@ jobs: uses: redhat-actions/buildah-build@v2 with: image: ${{ env.REGISTRY_IMAGE }} - tags: quay.io/ocsci/ocs-ci-container:test1 + tags: quay.io/ocsci/ocs-ci-container:test2 containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci - build-args: | - COMMIT=${{ github.sha }} - BRANCH=${{ env.BRANCH }} - LABEL=${{ github.event.pull_request.head.label }} - HEAD_REF=${{ github.head_ref }} - REF_NAME=${{ github.ref_name }} - REF=${{ github.ref }} - name: check image name run: podman images @@ -56,7 +44,7 @@ jobs: with: image: ${{ steps.build-image.outputs.image }} tags: ${{ steps.build-image.outputs.tags }} - registry: ${{ env.IMAGE_REGISTRY }}/${{ env.REGISTRY_NS }} + registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} - name: Print image url run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" From 9b7b7d3d4a4f0ec14b597d508d453bc702600d99 Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 17:09:37 +0300 Subject: [PATCH 33/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index fc23be2cb02..2a77e963999 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -42,9 +42,7 @@ jobs: id: push-to-quay uses: redhat-actions/push-to-registry@v2 with: - image: ${{ steps.build-image.outputs.image }} tags: ${{ steps.build-image.outputs.tags }} - registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} - name: Print image url run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" From f16374fa3f0076570be8a371f1fb2af44c4b9e2a Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 17:14:17 +0300 Subject: [PATCH 34/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 2a77e963999..a7a6b8aef1b 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -28,8 +28,7 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - image: ${{ env.REGISTRY_IMAGE }} - tags: quay.io/ocsci/ocs-ci-container:test2 + tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test12 containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From 4b61885405aac2b99f2209eface90f269aeea20f Mon Sep 17 00:00:00 2001 From: oviner Date: Sun, 7 May 2023 17:18:51 +0300 Subject: [PATCH 35/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index a7a6b8aef1b..c682166468c 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -28,7 +28,7 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test12 + tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test16 ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test15 containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From a47293c2941f7ac3b7ab2c1b6064ad84e8d4e6cd Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 12:20:47 +0300 Subject: [PATCH 36/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index c682166468c..7bcb982d0bc 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -28,7 +28,8 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test16 ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test15 + tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ + ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:$(date +'%Y-%m-%d') containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From 06d183780ce89da221ada992505f6a4d07b76b81 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 12:27:47 +0300 Subject: [PATCH 37/52] 1234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 7bcb982d0bc..92df078d40e 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -8,6 +8,7 @@ env: REGISTRY: quay.io REGISTRY_NS: ocsci REGISTRY_IMAGE: ocs-ci-container + TIME: None jobs: buildah: @@ -26,10 +27,12 @@ jobs: - name: Buildah Action id: build-image + run: | + echo "release-date=$(date --rfc-3339=date)" >> ${env.TIME} uses: redhat-actions/buildah-build@v2 with: tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ - ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:$(date +'%Y-%m-%d') + ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:${{ env.TIME }} containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From a700a6a057dd1e7444e98f079fe87e111ed0e00e Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 12:29:32 +0300 Subject: [PATCH 38/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 92df078d40e..c0d2624ef77 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -8,7 +8,7 @@ env: REGISTRY: quay.io REGISTRY_NS: ocsci REGISTRY_IMAGE: ocs-ci-container - TIME: None + TIME: $(date --rfc-3339=date) jobs: buildah: @@ -27,8 +27,6 @@ jobs: - name: Buildah Action id: build-image - run: | - echo "release-date=$(date --rfc-3339=date)" >> ${env.TIME} uses: redhat-actions/buildah-build@v2 with: tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ From 9cfe477d1beec56be0b203b6a2846f1976c7e2d7 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 12:31:34 +0300 Subject: [PATCH 39/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index c0d2624ef77..e1c139ce0bc 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -18,6 +18,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Print time time + run: echo "Image pushed to ${{ env.TIME }}" + - name: Log in to Quay.io uses: redhat-actions/podman-login@v1 with: From e3e72b22f8cf19fd1ec2f919127645da24a8a7bc Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 12:32:48 +0300 Subject: [PATCH 40/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index e1c139ce0bc..d08ccf5feb1 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -33,7 +33,7 @@ jobs: uses: redhat-actions/buildah-build@v2 with: tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ - ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:${{ env.TIME }} + ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }} containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From 2152350427bbcd697d7158e4d619e2ecf83fb377 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 12:34:32 +0300 Subject: [PATCH 41/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index d08ccf5feb1..2f942ef561b 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -19,8 +19,9 @@ jobs: uses: actions/checkout@v2 - name: Print time time - run: echo "Image pushed to ${{ env.TIME }}" - + run: | + echo "Image pushed to ${{ env.TIME }}" + echo "${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }}" - name: Log in to Quay.io uses: redhat-actions/podman-login@v1 with: @@ -32,8 +33,7 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ - ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }} + tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }} containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From e3b6ecb713dbf4d7b84d5a20eacda993522e20a0 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 12:39:15 +0300 Subject: [PATCH 42/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 2f942ef561b..9e38d79f747 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -33,7 +33,8 @@ jobs: id: build-image uses: redhat-actions/buildah-build@v2 with: - tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }} + image: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }} + tags: test55 test55-${{ env.TIME }} containerfiles: | ./Docker_files/ocsci_container/Containerfile.ci From 55821445e00e7f98320b29db53ae2a3902313136 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 14:19:07 +0300 Subject: [PATCH 43/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 9e38d79f747..ecf27c7472a 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -8,7 +8,6 @@ env: REGISTRY: quay.io REGISTRY_NS: ocsci REGISTRY_IMAGE: ocs-ci-container - TIME: $(date --rfc-3339=date) jobs: buildah: @@ -18,10 +17,15 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Set time env + run: echo "TIME=$(date --rfc-3339=date)" >> "$GITHUB_ENV" + - name: Print time time run: | + env.TIME = $(date --rfc-3339=date) echo "Image pushed to ${{ env.TIME }}" - echo "${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }}" + echo "${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ + ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }}" - name: Log in to Quay.io uses: redhat-actions/podman-login@v1 with: @@ -47,6 +51,7 @@ jobs: id: push-to-quay uses: redhat-actions/push-to-registry@v2 with: + image: ${{ steps.build-image.outputs.image }} tags: ${{ steps.build-image.outputs.tags }} - name: Print image url From 9ee75b53194dbd0a96e1258fdf438a7b4e9b1d45 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 14:20:17 +0300 Subject: [PATCH 44/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index ecf27c7472a..0b2a1ba0aee 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -22,7 +22,7 @@ jobs: - name: Print time time run: | - env.TIME = $(date --rfc-3339=date) + echo env.TIME echo "Image pushed to ${{ env.TIME }}" echo "${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }}" From 74473fb3593874e9ce69b5df4f5bdb18fd7e1fdf Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 14:25:35 +0300 Subject: [PATCH 45/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 0b2a1ba0aee..a93a50877b3 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -22,7 +22,7 @@ jobs: - name: Print time time run: | - echo env.TIME + echo ${env.TIME} echo "Image pushed to ${{ env.TIME }}" echo "${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }}" @@ -53,6 +53,7 @@ jobs: with: image: ${{ steps.build-image.outputs.image }} tags: ${{ steps.build-image.outputs.tags }} + registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} - name: Print image url run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" From a50456bcdfac3eac2b8569eef6eeb503b1d5a843 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 14:26:43 +0300 Subject: [PATCH 46/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index a93a50877b3..0c88ae5cf87 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -22,7 +22,6 @@ jobs: - name: Print time time run: | - echo ${env.TIME} echo "Image pushed to ${{ env.TIME }}" echo "${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }}" From f9d9e133c3633b56dd8e57440338fb89d906ce87 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 14:32:48 +0300 Subject: [PATCH 47/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 0c88ae5cf87..91ffe84f834 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -20,11 +20,11 @@ jobs: - name: Set time env run: echo "TIME=$(date --rfc-3339=date)" >> "$GITHUB_ENV" - - name: Print time time + - name: Print time run: | - echo "Image pushed to ${{ env.TIME }}" + echo "Time = ${{ env.TIME }}" echo "${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ - ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:stable-${{ env.TIME }}" + ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55-${{ env.TIME }}" - name: Log in to Quay.io uses: redhat-actions/podman-login@v1 with: @@ -52,7 +52,7 @@ jobs: with: image: ${{ steps.build-image.outputs.image }} tags: ${{ steps.build-image.outputs.tags }} - registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} + registry: ${{ env.REGISTRY }} - name: Print image url run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" From 66ce53c8eca10a5781dbbe0d575929e982f95a95 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 14:41:49 +0300 Subject: [PATCH 48/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 91ffe84f834..589975b42f2 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -50,9 +50,9 @@ jobs: id: push-to-quay uses: redhat-actions/push-to-registry@v2 with: - image: ${{ steps.build-image.outputs.image }} + registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} + image: ${{ env.REGISTRY_IMAGE }} tags: ${{ steps.build-image.outputs.tags }} - registry: ${{ env.REGISTRY }} - name: Print image url run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" From 8c08cca78d60a4b83d376b00e29edd216b2742be Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 15:13:43 +0300 Subject: [PATCH 49/52] 1111234 test Signed-off-by: oviner --- .github/workflows/simple.yml | 58 ------------------------------------ 1 file changed, 58 deletions(-) delete mode 100644 .github/workflows/simple.yml diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml deleted file mode 100644 index 589975b42f2..00000000000 --- a/.github/workflows/simple.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Build Container Image - -on: [pull_request] - -env: - REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} - REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} - REGISTRY: quay.io - REGISTRY_NS: ocsci - REGISTRY_IMAGE: ocs-ci-container - -jobs: - buildah: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set time env - run: echo "TIME=$(date --rfc-3339=date)" >> "$GITHUB_ENV" - - - name: Print time - run: | - echo "Time = ${{ env.TIME }}" - echo "${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55 \ - ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }}:test55-${{ env.TIME }}" - - name: Log in to Quay.io - uses: redhat-actions/podman-login@v1 - with: - username: ${{ env.REGISTRY_USER }} - password: ${{ env.REGISTRY_PASSWORD }} - registry: ${{ env.REGISTRY }} - - - name: Buildah Action - id: build-image - uses: redhat-actions/buildah-build@v2 - with: - image: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }} - tags: test55 test55-${{ env.TIME }} - containerfiles: | - ./Docker_files/ocsci_container/Containerfile.ci - - - name: check image name - run: podman images - - # Podman Login action (https://github.com/redhat-actions/podman-login) also be used to log in, - # in which case 'username' and 'password' can be omitted. - - name: Push To quay.io - id: push-to-quay - uses: redhat-actions/push-to-registry@v2 - with: - registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} - image: ${{ env.REGISTRY_IMAGE }} - tags: ${{ steps.build-image.outputs.tags }} - - - name: Print image url - run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" From 06262e6c76437bd5be0240ae835c3d35b972f109 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 16:59:49 +0300 Subject: [PATCH 50/52] fix gitaction filename Signed-off-by: oviner --- .github/workflows/build_push_ocsci_image.yml | 51 ++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/build_push_ocsci_image.yml diff --git a/.github/workflows/build_push_ocsci_image.yml b/.github/workflows/build_push_ocsci_image.yml new file mode 100644 index 00000000000..34ad1de903b --- /dev/null +++ b/.github/workflows/build_push_ocsci_image.yml @@ -0,0 +1,51 @@ +name: Build Container Image + +on: [pull_request] + +env: + REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} + REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + REGISTRY: quay.io + REGISTRY_NS: ocsci + REGISTRY_IMAGE: ocs-ci-container + +jobs: + buildah: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set time env + run: echo "TIME=$(date --rfc-3339=date)" >> "$GITHUB_ENV" + + - name: Log in to Quay.io + uses: redhat-actions/podman-login@v1 + with: + username: ${{ env.REGISTRY_USER }} + password: ${{ env.REGISTRY_PASSWORD }} + registry: ${{ env.REGISTRY }} + + - name: Buildah Action + id: build-image + uses: redhat-actions/buildah-build@v2 + with: + image: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }}/${{ env.REGISTRY_IMAGE }} + tags: test55 test55-${{ env.TIME }} + containerfiles: | + ./Docker_files/ocsci_container/Containerfile.ci + + - name: check image name + run: podman images + + - name: Push To quay.io + id: push-to-quay + uses: redhat-actions/push-to-registry@v2 + with: + registry: ${{ env.REGISTRY }}/${{ env.REGISTRY_NS }} + image: ${{ env.REGISTRY_IMAGE }} + tags: ${{ steps.build-image.outputs.tags }} + + - name: Print image url + run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" From 30ecfefdd82556c6286ef0992f70e4c6aa092c48 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 17:12:30 +0300 Subject: [PATCH 51/52] fix code Signed-off-by: oviner --- .github/workflows/pr_checks.yml | 34 +++++++++++++++++++++++++++++ .github/workflows/stale.yml | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 .github/workflows/pr_checks.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml new file mode 100644 index 00000000000..7ea006e60fd --- /dev/null +++ b/.github/workflows/pr_checks.yml @@ -0,0 +1,34 @@ +name: "PR Checks" +# Triggers the workflow on pull request events +on: pull_request + +jobs: + pr_checks: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - 3.8 + - 3.9 + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install ovirt-engine-sdk-python dependencies + run: | + sudo apt update + sudo apt install -y libcurl4-openssl-dev + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + + - name: Test with tox + run: tox diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000000..6337fc61ded --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,38 @@ +name: Mark stale issues and pull requests + +on: + schedule: + # Run every day at 8pm UTC + - cron: '0 20 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v4 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 90 + days-before-close: 30 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed in 30 days if no further activity occurs. + stale-pr-message: > + This pull request has been automatically marked as stale because it has not had + recent activity. It will be closed in 30 days if no further activity occurs. + close-issue-message: > + This issue has been automatically closed due to inactivity. + Please re-open if this still requires investigation. + close-pr-message: > + This pull request has been automatically closed due to inactivity. + Please re-open if these changes are still required. + stale-issue-label: 'lifecycle/stale' + stale-pr-label: 'lifecycle/stale' + exempt-issue-labels: 'lifecycle/keepalive' + exempt-pr-labels: 'lifecycle/keepalive' + operations-per-run: 100 From 827ea6616698d309e3d657898f4e8b8f5e15d127 Mon Sep 17 00:00:00 2001 From: oviner Date: Mon, 8 May 2023 17:17:16 +0300 Subject: [PATCH 52/52] 123 Signed-off-by: oviner --- .github/workflows/build_push_ocsci_image.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_push_ocsci_image.yml b/.github/workflows/build_push_ocsci_image.yml index 34ad1de903b..d9b625ce905 100644 --- a/.github/workflows/build_push_ocsci_image.yml +++ b/.github/workflows/build_push_ocsci_image.yml @@ -2,6 +2,7 @@ name: Build Container Image on: [pull_request] +# Environment Vars env: REGISTRY_USER: ${{ secrets.QUAY_USERNAME }} REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}