Merge pull request #126 from keitaroinc/update-action-versions
update actions versions
This commit is contained in:
commit
daa578a504
|
@ -9,26 +9,26 @@ jobs:
|
||||||
build-ckan-2-10:
|
build-ckan-2-10:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache-alpine-2-10
|
/tmp/.buildx-cache-alpine-2-10
|
||||||
|
@ -40,10 +40,10 @@ jobs:
|
||||||
- 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.10/Dockerfile)"
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push CKAN 2.10 alpine
|
- name: Build and push CKAN 2.10 alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.10
|
context: ./images/ckan/2.10
|
||||||
file: ./images/ckan/2.10/Dockerfile
|
file: ./images/ckan/2.10/Dockerfile
|
||||||
|
@ -57,10 +57,10 @@ jobs:
|
||||||
- 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.10/Dockerfile.focal)"
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push CKAN 2.10 ubuntu
|
- name: Build and push CKAN 2.10 ubuntu
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.10
|
context: ./images/ckan/2.10
|
||||||
file: ./images/ckan/2.10/Dockerfile.focal
|
file: ./images/ckan/2.10/Dockerfile.focal
|
||||||
|
@ -74,26 +74,26 @@ jobs:
|
||||||
build-ckan-2-9:
|
build-ckan-2-9:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache-alpine-2-9
|
/tmp/.buildx-cache-alpine-2-9
|
||||||
|
@ -105,10 +105,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push CKAN 2.9 alpine
|
- name: Build and push CKAN 2.9 alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.9
|
context: ./images/ckan/2.9
|
||||||
file: ./images/ckan/2.9/Dockerfile
|
file: ./images/ckan/2.9/Dockerfile
|
||||||
|
@ -122,10 +122,10 @@ jobs:
|
||||||
- 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.9/Dockerfile.focal)"
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push CKAN 2.9 ubuntu
|
- name: Build and push CKAN 2.9 ubuntu
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.9
|
context: ./images/ckan/2.9
|
||||||
file: ./images/ckan/2.9/Dockerfile.focal
|
file: ./images/ckan/2.9/Dockerfile.focal
|
||||||
|
@ -139,26 +139,26 @@ jobs:
|
||||||
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@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache-alpine-2-8
|
/tmp/.buildx-cache-alpine-2-8
|
||||||
|
@ -170,10 +170,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push CKAN 2.8 alpine
|
- name: Build and push CKAN 2.8 alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.8
|
context: ./images/ckan/2.8
|
||||||
file: ./images/ckan/2.8/Dockerfile
|
file: ./images/ckan/2.8/Dockerfile
|
||||||
|
@ -187,10 +187,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push CKAN 2.8 ubuntu
|
- name: Build and push CKAN 2.8 ubuntu
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
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
|
||||||
|
@ -204,26 +204,26 @@ jobs:
|
||||||
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@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache-alpine-2-7
|
/tmp/.buildx-cache-alpine-2-7
|
||||||
|
@ -235,10 +235,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push CKAN 2.7 alpine
|
- name: Build and push CKAN 2.7 alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.7
|
context: ./images/ckan/2.7
|
||||||
file: ./images/ckan/2.7/Dockerfile
|
file: ./images/ckan/2.7/Dockerfile
|
||||||
|
@ -252,10 +252,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.7 ubuntu
|
- name: Build CKAN 2.7 ubuntu
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
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
|
||||||
|
@ -269,26 +269,26 @@ jobs:
|
||||||
build-ckan-datapusher:
|
build-ckan-datapusher:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
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 }}
|
||||||
|
@ -298,10 +298,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push CKAN datapusher
|
- name: Build and push CKAN datapusher
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/datapusher
|
context: ./images/datapusher
|
||||||
file: ./images/datapusher/Dockerfile
|
file: ./images/datapusher/Dockerfile
|
||||||
|
@ -315,26 +315,26 @@ jobs:
|
||||||
build-psql-init:
|
build-psql-init:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache-psql-init
|
path: /tmp/.buildx-cache-psql-init
|
||||||
key: ${{ runner.os }}-buildx-psql-init-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-psql-init-${{ github.sha }}
|
||||||
|
@ -344,10 +344,10 @@ jobs:
|
||||||
- name: Get docker tag for psql-init image
|
- name: Get docker tag for psql-init image
|
||||||
id: psql-init
|
id: psql-init
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/psql-init/Dockerfile)"
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/psql-init/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push psql-init
|
- name: Build and push psql-init
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/psql-init
|
context: ./images/psql-init
|
||||||
file: ./images/psql-init/Dockerfile
|
file: ./images/psql-init/Dockerfile
|
||||||
|
|
|
@ -9,13 +9,13 @@ jobs:
|
||||||
build-ckan-2-10:
|
build-ckan-2-10:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache-alpine-2-10
|
/tmp/.buildx-cache-alpine-2-10
|
||||||
|
@ -27,10 +27,10 @@ jobs:
|
||||||
- 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.10/Dockerfile)"
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.10 alpine
|
- name: Build CKAN 2.10 alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.10
|
context: ./images/ckan/2.10
|
||||||
file: ./images/ckan/2.10/Dockerfile
|
file: ./images/ckan/2.10/Dockerfile
|
||||||
|
@ -42,10 +42,10 @@ jobs:
|
||||||
- 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.10/Dockerfile.focal)"
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.10 ubuntu
|
- name: Build CKAN 2.10 ubuntu
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.10
|
context: ./images/ckan/2.10
|
||||||
file: ./images/ckan/2.10/Dockerfile.focal
|
file: ./images/ckan/2.10/Dockerfile.focal
|
||||||
|
@ -60,13 +60,13 @@ jobs:
|
||||||
build-ckan-2-9:
|
build-ckan-2-9:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache-alpine-2-9
|
/tmp/.buildx-cache-alpine-2-9
|
||||||
|
@ -78,10 +78,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.9 alpine
|
- name: Build CKAN 2.9 alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.9
|
context: ./images/ckan/2.9
|
||||||
file: ./images/ckan/2.9/Dockerfile
|
file: ./images/ckan/2.9/Dockerfile
|
||||||
|
@ -93,10 +93,10 @@ jobs:
|
||||||
- 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.9/Dockerfile.focal)"
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.9 ubuntu
|
- name: Build CKAN 2.9 ubuntu
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.9
|
context: ./images/ckan/2.9
|
||||||
file: ./images/ckan/2.9/Dockerfile.focal
|
file: ./images/ckan/2.9/Dockerfile.focal
|
||||||
|
@ -110,13 +110,13 @@ jobs:
|
||||||
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@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache-alpine-2-8
|
/tmp/.buildx-cache-alpine-2-8
|
||||||
|
@ -128,10 +128,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.8 alpine
|
- name: Build CKAN 2.8 alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.8
|
context: ./images/ckan/2.8
|
||||||
file: ./images/ckan/2.8/Dockerfile
|
file: ./images/ckan/2.8/Dockerfile
|
||||||
|
@ -143,10 +143,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.8 ubuntu
|
- name: Build CKAN 2.8 ubuntu
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
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
|
||||||
|
@ -158,13 +158,13 @@ jobs:
|
||||||
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@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache-alpine-2-7
|
/tmp/.buildx-cache-alpine-2-7
|
||||||
|
@ -176,10 +176,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.7 alpine
|
- name: Build CKAN 2.7 alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/ckan/2.7
|
context: ./images/ckan/2.7
|
||||||
file: ./images/ckan/2.7/Dockerfile
|
file: ./images/ckan/2.7/Dockerfile
|
||||||
|
@ -191,10 +191,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN 2.7 ubuntu
|
- name: Build CKAN 2.7 ubuntu
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
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
|
||||||
|
@ -206,13 +206,13 @@ jobs:
|
||||||
build-ckan-datapusher:
|
build-ckan-datapusher:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
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 }}
|
||||||
|
@ -222,10 +222,10 @@ jobs:
|
||||||
- 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 "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build CKAN datapusher
|
- name: Build CKAN datapusher
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/datapusher
|
context: ./images/datapusher
|
||||||
file: ./images/datapusher/Dockerfile
|
file: ./images/datapusher/Dockerfile
|
||||||
|
@ -237,13 +237,13 @@ jobs:
|
||||||
build-psql-init:
|
build-psql-init:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache-psql-init
|
path: /tmp/.buildx-cache-psql-init
|
||||||
key: ${{ runner.os }}-buildx-psql-init-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-psql-init-${{ github.sha }}
|
||||||
|
@ -253,10 +253,10 @@ jobs:
|
||||||
- name: Get docker tag for psql-init image
|
- name: Get docker tag for psql-init image
|
||||||
id: psql-init
|
id: psql-init
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=IMAGE_TAG::$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/psql-init/Dockerfile)"
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/psql-init/Dockerfile)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build psql-init
|
- name: Build psql-init
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./images/psql-init
|
context: ./images/psql-init
|
||||||
file: ./images/psql-init/Dockerfile
|
file: ./images/psql-init/Dockerfile
|
||||||
|
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Trivy vulnerability scanner in repo mode
|
- name: Run Trivy vulnerability scanner in repo mode
|
||||||
uses: aquasecurity/trivy-action@master
|
uses: aquasecurity/trivy-action@master
|
||||||
|
@ -26,7 +26,7 @@ jobs:
|
||||||
severity: 'CRITICAL'
|
severity: 'CRITICAL'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build an image from Dockerfile
|
- name: Build an image from Dockerfile
|
||||||
run: |
|
run: |
|
||||||
|
@ -51,7 +51,7 @@ jobs:
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build an image from Dockerfile
|
- name: Build an image from Dockerfile
|
||||||
run: |
|
run: |
|
||||||
|
@ -76,7 +76,7 @@ jobs:
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build an image from Dockerfile
|
- name: Build an image from Dockerfile
|
||||||
run: |
|
run: |
|
||||||
|
@ -100,7 +100,7 @@ jobs:
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build an image from Dockerfile
|
- name: Build an image from Dockerfile
|
||||||
run: |
|
run: |
|
||||||
|
@ -124,7 +124,7 @@ jobs:
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build an image from Dockerfile
|
- name: Build an image from Dockerfile
|
||||||
run: |
|
run: |
|
||||||
|
@ -148,7 +148,7 @@ jobs:
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build an image from Dockerfile
|
- name: Build an image from Dockerfile
|
||||||
run: |
|
run: |
|
||||||
|
@ -173,6 +173,6 @@ jobs:
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
Loading…
Reference in New Issue