changed version of ubuntu runner to 20.04 because latest has problems

This commit is contained in:
filip.mihajlovski 2022-07-07 16:51:42 +02:00
parent c16358a4a9
commit c25166f6a3
2 changed files with 121 additions and 125 deletions

View File

@ -4,8 +4,6 @@ on:
push: push:
branches: master branches: master
env:
DOCKER_BUILDKIT: 1
jobs: jobs:
build-ckan-2-9: build-ckan-2-9:

View File

@ -4,8 +4,6 @@ on:
pull_request: pull_request:
branches: master branches: master
env:
DOCKER_BUILDKIT: 1
jobs: jobs:
build-ckan-2-9: build-ckan-2-9:
@ -26,20 +24,20 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-buildx-2-9 ${{ runner.os }}-buildx-2-9
# - name: Get docker tag for Alpine image - name: Get docker tag for Alpine image
# id: alpine id: alpine
# run: | run: |
# echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)" echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)"
# - name: Build CKAN 2.9 alpine - name: Build CKAN 2.9 alpine
# uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
# with: with:
# context: ./images/ckan/2.9 context: ./images/ckan/2.9
# file: ./images/ckan/2.9/Dockerfile file: ./images/ckan/2.9/Dockerfile
# push: false push: false
# tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
# cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-9 cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-9
# cache-to: type=local,mode=max,dest=/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 - name: Get docker tag for Ubuntu image
id: ubuntu id: ubuntu
@ -58,129 +56,129 @@ jobs:
build-args: | build-args: |
--progress=plain --progress=plain
# build-ckan-2-8: build-ckan-2-8:
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - uses: actions/checkout@v2 - uses: actions/checkout@v2
# - name: Set up Docker Buildx - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
# - name: Cache Docker layers - name: Cache Docker layers
# uses: actions/cache@v2 uses: actions/cache@v2
# with: with:
# path: | path: |
# /tmp/.buildx-cache-alpine-2-8 /tmp/.buildx-cache-alpine-2-8
# /tmp/.buildx-cache-ubuntu-2-8 /tmp/.buildx-cache-ubuntu-2-8
# key: ${{ runner.os }}-buildx-2-8-${{ github.sha }} key: ${{ runner.os }}-buildx-2-8-${{ github.sha }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-buildx-2-8 ${{ runner.os }}-buildx-2-8
# - name: Get docker tag for Alpine image - name: Get docker tag for Alpine image
# id: alpine id: alpine
# run: | run: |
# echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)" echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)"
# - name: Build CKAN 2.8 alpine - name: Build CKAN 2.8 alpine
# uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
# with: with:
# context: ./images/ckan/2.8 context: ./images/ckan/2.8
# file: ./images/ckan/2.8/Dockerfile file: ./images/ckan/2.8/Dockerfile
# push: false push: false
# tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
# cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-8 cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-8
# cache-to: type=local,mode=max,dest=/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 - name: Get docker tag for Ubuntu image
# id: ubuntu id: ubuntu
# run: | run: |
# echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)" echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)"
# - name: Build CKAN 2.8 ubuntu - name: Build CKAN 2.8 ubuntu
# uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
# with: with:
# context: ./images/ckan/2.8 context: ./images/ckan/2.8
# file: ./images/ckan/2.8/Dockerfile.focal file: ./images/ckan/2.8/Dockerfile.focal
# push: false push: false
# tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }} tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
# cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-8 cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-8
# cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-8 cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-8
# build-ckan-2-7: build-ckan-2-7:
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - uses: actions/checkout@v2 - uses: actions/checkout@v2
# - name: Set up Docker Buildx - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
# - name: Cache Docker layers - name: Cache Docker layers
# uses: actions/cache@v2 uses: actions/cache@v2
# with: with:
# path: | path: |
# /tmp/.buildx-cache-alpine-2-7 /tmp/.buildx-cache-alpine-2-7
# /tmp/.buildx-cache-ubuntu-2-7 /tmp/.buildx-cache-ubuntu-2-7
# key: ${{ runner.os }}-buildx-2-7-${{ github.sha }} key: ${{ runner.os }}-buildx-2-7-${{ github.sha }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-buildx-2-7 ${{ runner.os }}-buildx-2-7
# - name: Get docker tag for Alpine image - name: Get docker tag for Alpine image
# id: alpine id: alpine
# run: | run: |
# echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)" echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)"
# - name: Build CKAN 2.7 alpine - name: Build CKAN 2.7 alpine
# uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
# with: with:
# context: ./images/ckan/2.7 context: ./images/ckan/2.7
# file: ./images/ckan/2.7/Dockerfile file: ./images/ckan/2.7/Dockerfile
# push: false push: false
# tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }} tags: keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
# cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-7 cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-7
# cache-to: type=local,mode=max,dest=/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 - name: Get docker tag for Ubuntu image
# id: ubuntu id: ubuntu
# run: | run: |
# echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)" echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)"
# - name: Build CKAN 2.7 ubuntu - name: Build CKAN 2.7 ubuntu
# uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
# with: with:
# context: ./images/ckan/2.7 context: ./images/ckan/2.7
# file: ./images/ckan/2.7/Dockerfile.focal file: ./images/ckan/2.7/Dockerfile.focal
# push: false push: false
# tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }} tags: keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
# cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-7 cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-7
# cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-7 cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-7
# build-ckan-datapusher: build-ckan-datapusher:
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - uses: actions/checkout@v2 - uses: actions/checkout@v2
# - name: Set up Docker Buildx - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
# - name: Cache Docker layers - name: Cache Docker layers
# uses: actions/cache@v2 uses: actions/cache@v2
# with: with:
# path: /tmp/.buildx-cache-datapusher path: /tmp/.buildx-cache-datapusher
# key: ${{ runner.os }}-buildx-datapusher-${{ github.sha }} key: ${{ runner.os }}-buildx-datapusher-${{ github.sha }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-buildx-datapusher ${{ runner.os }}-buildx-datapusher
# - name: Get docker tag for datapusher image - name: Get docker tag for datapusher image
# id: datapusher id: datapusher
# run: | run: |
# echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)" echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)"
# - name: Build CKAN datapusher - name: Build CKAN datapusher
# uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
# with: with:
# context: ./images/datapusher context: ./images/datapusher
# file: ./images/datapusher/Dockerfile file: ./images/datapusher/Dockerfile
# push: false push: false
# tags: keitaro/ckandatapusher:${{ steps.datapusher.outputs.IMAGE_TAG }} tags: keitaro/ckandatapusher:${{ steps.datapusher.outputs.IMAGE_TAG }}
# cache-from: type=local,src=/tmp/.buildx-cache-datapusher cache-from: type=local,src=/tmp/.buildx-cache-datapusher
# cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-datapusher cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-datapusher