From a67752369aec4be39ed755f20117ead83c2b32a8 Mon Sep 17 00:00:00 2001 From: "filip.mihajlovski" Date: Thu, 7 Jul 2022 16:34:19 +0200 Subject: [PATCH] test 20.04 --- .github/workflows/pr_checks.yml | 246 ++++++++++++++++---------------- 1 file changed, 123 insertions(+), 123 deletions(-) diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml index a90d904..c34a7f6 100644 --- a/.github/workflows/pr_checks.yml +++ b/.github/workflows/pr_checks.yml @@ -9,7 +9,7 @@ env: jobs: build-ckan-2-9: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -26,20 +26,20 @@ jobs: restore-keys: | ${{ runner.os }}-buildx-2-9 - - name: Get docker tag for Alpine image - id: alpine - run: | - echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)" + # - name: Get docker tag for Alpine image + # id: alpine + # run: | + # echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)" - - name: Build CKAN 2.9 alpine - uses: docker/build-push-action@v2 - with: - context: ./images/ckan/2.9 - file: ./images/ckan/2.9/Dockerfile - push: false - tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} - cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-9 - cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-9 + # - name: Build CKAN 2.9 alpine + # uses: docker/build-push-action@v2 + # with: + # context: ./images/ckan/2.9 + # file: ./images/ckan/2.9/Dockerfile + # push: false + # tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} + # cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-9 + # cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-9 - name: Get docker tag for Ubuntu image id: ubuntu @@ -55,132 +55,132 @@ jobs: tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }} cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-9 cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-9 - build-args: + build-args: | --progress=plain - build-ckan-2-8: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + # build-ckan-2-8: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v1 - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: | - /tmp/.buildx-cache-alpine-2-8 - /tmp/.buildx-cache-ubuntu-2-8 - key: ${{ runner.os }}-buildx-2-8-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-2-8 + # - name: Cache Docker layers + # uses: actions/cache@v2 + # with: + # path: | + # /tmp/.buildx-cache-alpine-2-8 + # /tmp/.buildx-cache-ubuntu-2-8 + # key: ${{ runner.os }}-buildx-2-8-${{ github.sha }} + # restore-keys: | + # ${{ runner.os }}-buildx-2-8 - - name: Get docker tag for Alpine image - id: alpine - run: | - echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)" + # - name: Get docker tag for Alpine image + # id: alpine + # run: | + # echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)" - - name: Build CKAN 2.8 alpine - uses: docker/build-push-action@v2 - with: - context: ./images/ckan/2.8 - file: ./images/ckan/2.8/Dockerfile - push: false - tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} - cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-8 - cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-8 + # - name: Build CKAN 2.8 alpine + # uses: docker/build-push-action@v2 + # with: + # context: ./images/ckan/2.8 + # file: ./images/ckan/2.8/Dockerfile + # push: false + # tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} + # cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-8 + # cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-8 - - name: Get docker tag for Ubuntu image - id: ubuntu - run: | - echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)" + # - name: Get docker tag for Ubuntu image + # id: ubuntu + # run: | + # echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)" - - name: Build CKAN 2.8 ubuntu - uses: docker/build-push-action@v2 - with: - context: ./images/ckan/2.8 - file: ./images/ckan/2.8/Dockerfile.focal - push: false - tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }} - cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-8 - cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-8 + # - name: Build CKAN 2.8 ubuntu + # uses: docker/build-push-action@v2 + # with: + # context: ./images/ckan/2.8 + # file: ./images/ckan/2.8/Dockerfile.focal + # push: false + # tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }} + # cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-8 + # cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-8 - build-ckan-2-7: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + # build-ckan-2-7: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v1 - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: | - /tmp/.buildx-cache-alpine-2-7 - /tmp/.buildx-cache-ubuntu-2-7 - key: ${{ runner.os }}-buildx-2-7-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-2-7 + # - name: Cache Docker layers + # uses: actions/cache@v2 + # with: + # path: | + # /tmp/.buildx-cache-alpine-2-7 + # /tmp/.buildx-cache-ubuntu-2-7 + # key: ${{ runner.os }}-buildx-2-7-${{ github.sha }} + # restore-keys: | + # ${{ runner.os }}-buildx-2-7 - - name: Get docker tag for Alpine image - id: alpine - run: | - echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)" + # - name: Get docker tag for Alpine image + # id: alpine + # run: | + # echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)" - - name: Build CKAN 2.7 alpine - uses: docker/build-push-action@v2 - with: - context: ./images/ckan/2.7 - file: ./images/ckan/2.7/Dockerfile - push: false - tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} - cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-7 - cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-7 + # - name: Build CKAN 2.7 alpine + # uses: docker/build-push-action@v2 + # with: + # context: ./images/ckan/2.7 + # file: ./images/ckan/2.7/Dockerfile + # push: false + # tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} + # cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-7 + # cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-7 - - name: Get docker tag for Ubuntu image - id: ubuntu - run: | - echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)" + # - name: Get docker tag for Ubuntu image + # id: ubuntu + # run: | + # echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)" - - name: Build CKAN 2.7 ubuntu - uses: docker/build-push-action@v2 - with: - context: ./images/ckan/2.7 - file: ./images/ckan/2.7/Dockerfile.focal - push: false - tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }} - cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-7 - cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-7 + # - name: Build CKAN 2.7 ubuntu + # uses: docker/build-push-action@v2 + # with: + # context: ./images/ckan/2.7 + # file: ./images/ckan/2.7/Dockerfile.focal + # push: false + # tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }} + # cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-7 + # cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-7 - build-ckan-datapusher: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + # build-ckan-datapusher: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v1 - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: /tmp/.buildx-cache-datapusher - key: ${{ runner.os }}-buildx-datapusher-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-datapusher + # - name: Cache Docker layers + # uses: actions/cache@v2 + # with: + # path: /tmp/.buildx-cache-datapusher + # key: ${{ runner.os }}-buildx-datapusher-${{ github.sha }} + # restore-keys: | + # ${{ runner.os }}-buildx-datapusher - - name: Get docker tag for datapusher image - id: datapusher - run: | - echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)" + # - name: Get docker tag for datapusher image + # id: datapusher + # run: | + # echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)" - - name: Build CKAN datapusher - uses: docker/build-push-action@v2 - with: - context: ./images/datapusher - file: ./images/datapusher/Dockerfile - push: false - tags: keitaro/ckandatapusher:${{ steps.datapusher.outputs.IMAGE_TAG }} - cache-from: type=local,src=/tmp/.buildx-cache-datapusher - cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-datapusher + # - name: Build CKAN datapusher + # uses: docker/build-push-action@v2 + # with: + # context: ./images/datapusher + # file: ./images/datapusher/Dockerfile + # push: false + # tags: keitaro/ckandatapusher:${{ steps.datapusher.outputs.IMAGE_TAG }} + # cache-from: type=local,src=/tmp/.buildx-cache-datapusher + # cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-datapusher