2021-01-20 15:44:37 +01:00
|
|
|
name: Docker Image Build
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: master
|
|
|
|
|
2022-07-07 15:22:25 +02:00
|
|
|
|
2021-01-16 02:15:03 +01:00
|
|
|
jobs:
|
2024-08-21 12:08:43 +02:00
|
|
|
build-ckan-2-11:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
|
|
|
|
- name: Cache Docker layers
|
|
|
|
uses: actions/cache@v4
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
/tmp/.buildx-cache-alpine-2-11
|
|
|
|
/tmp/.buildx-cache-ubuntu-2-11
|
|
|
|
key: ${{ runner.os }}-buildx-2-11-${{ github.sha }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-buildx-2-11
|
|
|
|
|
|
|
|
- name: Get docker tag for Alpine image
|
|
|
|
id: alpine
|
|
|
|
run: |
|
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.11/Dockerfile)" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- name: Build and push CKAN 2.11 alpine
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.11
|
|
|
|
file: ./images/ckan/2.11/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-11
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-11
|
|
|
|
|
|
|
|
- name: Get docker tag for Ubuntu image
|
|
|
|
id: ubuntu
|
|
|
|
run: |
|
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.11/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- name: Build and push CKAN 2.11 ubuntu
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.11
|
|
|
|
file: ./images/ckan/2.11/Dockerfile.focal
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-11
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-11
|
|
|
|
|
2023-12-07 11:52:43 +01:00
|
|
|
build-ckan-2-10:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
2024-03-05 10:35:58 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-07 11:52:43 +01:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2023-12-07 11:52:43 +01:00
|
|
|
|
|
|
|
- name: Login to DockerHub
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2023-12-07 11:52:43 +01:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
|
|
|
|
- name: Login to GitHub Container Registry
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2023-12-07 11:52:43 +01:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
|
|
|
|
- name: Cache Docker layers
|
2024-03-05 14:01:05 +01:00
|
|
|
uses: actions/cache@v4
|
2023-12-07 11:52:43 +01:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
/tmp/.buildx-cache-alpine-2-10
|
|
|
|
/tmp/.buildx-cache-ubuntu-2-10
|
2024-08-07 15:35:38 +02:00
|
|
|
/tmp/.buildx-cache-alpine-2-10-xloader
|
2023-12-07 11:52:43 +01:00
|
|
|
key: ${{ runner.os }}-buildx-2-10-${{ github.sha }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-buildx-2-10
|
|
|
|
|
|
|
|
- name: Get docker tag for Alpine image
|
|
|
|
id: alpine
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile)" >> $GITHUB_OUTPUT
|
2023-12-07 11:52:43 +01:00
|
|
|
|
|
|
|
- name: Build and push CKAN 2.10 alpine
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2023-12-07 11:52:43 +01:00
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.10
|
|
|
|
file: ./images/ckan/2.10/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-10
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-10
|
|
|
|
|
2024-06-10 14:01:28 +02:00
|
|
|
- name: Get docker tag for alpine xloader image
|
2024-06-10 14:04:16 +02:00
|
|
|
id: alpine-xloader
|
2024-06-10 14:01:28 +02:00
|
|
|
run: |
|
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile.xloader)" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
- name: Build and push CKAN 2.10 alpine xloader
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.10
|
|
|
|
file: ./images/ckan/2.10/Dockerfile.xloader
|
|
|
|
push: true
|
|
|
|
tags: |
|
2024-08-07 15:35:38 +02:00
|
|
|
keitaro/ckan:${{ steps.alpine-xloader.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.alpine-xloader.outputs.IMAGE_TAG }}
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-10-xloader
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-10-xloader
|
2024-06-10 14:01:28 +02:00
|
|
|
|
2023-12-07 11:52:43 +01:00
|
|
|
- name: Get docker tag for Ubuntu image
|
|
|
|
id: ubuntu
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.10/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
2023-12-07 11:52:43 +01:00
|
|
|
|
|
|
|
- name: Build and push CKAN 2.10 ubuntu
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2023-12-07 11:52:43 +01:00
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.10
|
|
|
|
file: ./images/ckan/2.10/Dockerfile.focal
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-10
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-10
|
|
|
|
|
2021-01-16 02:15:03 +01:00
|
|
|
build-ckan-2-9:
|
2022-07-07 16:47:43 +02:00
|
|
|
runs-on: ubuntu-20.04
|
2021-01-16 02:15:03 +01:00
|
|
|
steps:
|
2024-03-05 10:35:58 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Login to DockerHub
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
|
2021-01-20 15:44:37 +01:00
|
|
|
- name: Login to GitHub Container Registry
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
|
|
|
|
- name: Cache Docker layers
|
2024-03-05 14:01:05 +01:00
|
|
|
uses: actions/cache@v4
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
2021-01-16 02:42:37 +01:00
|
|
|
path: |
|
|
|
|
/tmp/.buildx-cache-alpine-2-9
|
|
|
|
/tmp/.buildx-cache-ubuntu-2-9
|
|
|
|
key: ${{ runner.os }}-buildx-2-9-${{ github.sha }}
|
2021-01-16 02:15:03 +01:00
|
|
|
restore-keys: |
|
2021-01-16 02:42:37 +01:00
|
|
|
${{ runner.os }}-buildx-2-9
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Get docker tag for Alpine image
|
|
|
|
id: alpine
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile)" >> $GITHUB_OUTPUT
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Build and push CKAN 2.9 alpine
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.9
|
|
|
|
file: ./images/ckan/2.9/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
2021-01-16 02:42:37 +01:00
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-9
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-9
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Get docker tag for Ubuntu image
|
|
|
|
id: ubuntu
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.9/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Build and push CKAN 2.9 ubuntu
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.9
|
|
|
|
file: ./images/ckan/2.9/Dockerfile.focal
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
2021-01-16 02:42:37 +01:00
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-9
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-9
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
build-ckan-2-8:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-05 10:35:58 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Login to DockerHub
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
|
2021-01-20 15:44:37 +01:00
|
|
|
- name: Login to GitHub Container Registry
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
|
|
|
|
- name: Cache Docker layers
|
2024-03-05 14:01:05 +01:00
|
|
|
uses: actions/cache@v4
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
2021-01-16 02:42:37 +01:00
|
|
|
path: |
|
|
|
|
/tmp/.buildx-cache-alpine-2-8
|
|
|
|
/tmp/.buildx-cache-ubuntu-2-8
|
|
|
|
key: ${{ runner.os }}-buildx-2-8-${{ github.sha }}
|
2021-01-16 02:15:03 +01:00
|
|
|
restore-keys: |
|
2021-01-16 02:42:37 +01:00
|
|
|
${{ runner.os }}-buildx-2-8
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Get docker tag for Alpine image
|
|
|
|
id: alpine
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile)" >> $GITHUB_OUTPUT
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Build and push CKAN 2.8 alpine
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.8
|
|
|
|
file: ./images/ckan/2.8/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
2021-01-16 02:42:37 +01:00
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-8
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-8
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Get docker tag for Ubuntu image
|
|
|
|
id: ubuntu
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.8/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Build and push CKAN 2.8 ubuntu
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.8
|
|
|
|
file: ./images/ckan/2.8/Dockerfile.focal
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
2021-01-16 02:42:37 +01:00
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-8
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-8
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
build-ckan-2-7:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-05 10:35:58 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Login to DockerHub
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
|
2021-01-20 15:44:37 +01:00
|
|
|
- name: Login to GitHub Container Registry
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
|
|
|
|
- name: Cache Docker layers
|
2024-03-05 14:01:05 +01:00
|
|
|
uses: actions/cache@v4
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
2021-01-16 02:42:37 +01:00
|
|
|
path: |
|
|
|
|
/tmp/.buildx-cache-alpine-2-7
|
|
|
|
/tmp/.buildx-cache-ubuntu-2-7
|
|
|
|
key: ${{ runner.os }}-buildx-2-7-${{ github.sha }}
|
2021-01-16 02:15:03 +01:00
|
|
|
restore-keys: |
|
2021-01-16 02:42:37 +01:00
|
|
|
${{ runner.os }}-buildx-2-7
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Get docker tag for Alpine image
|
|
|
|
id: alpine
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile)" >> $GITHUB_OUTPUT
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Build and push CKAN 2.7 alpine
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.7
|
|
|
|
file: ./images/ckan/2.7/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.alpine.outputs.IMAGE_TAG }}
|
2021-01-16 02:42:37 +01:00
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-alpine-2-7
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-alpine-2-7
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Get docker tag for Ubuntu image
|
|
|
|
id: ubuntu
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/ckan/2.7/Dockerfile.focal)" >> $GITHUB_OUTPUT
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Build CKAN 2.7 ubuntu
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
context: ./images/ckan/2.7
|
|
|
|
file: ./images/ckan/2.7/Dockerfile.focal
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/ckan:${{ steps.ubuntu.outputs.IMAGE_TAG }}
|
2021-01-16 02:42:37 +01:00
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-ubuntu-2-7
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-ubuntu-2-7
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
build-ckan-datapusher:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-05 10:35:58 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Login to DockerHub
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
|
2021-01-20 15:44:37 +01:00
|
|
|
- name: Login to GitHub Container Registry
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
|
|
|
|
- name: Cache Docker layers
|
2024-03-05 14:01:05 +01:00
|
|
|
uses: actions/cache@v4
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
2021-01-16 02:42:37 +01:00
|
|
|
path: /tmp/.buildx-cache-datapusher
|
|
|
|
key: ${{ runner.os }}-buildx-datapusher-${{ github.sha }}
|
2021-01-16 02:15:03 +01:00
|
|
|
restore-keys: |
|
2021-01-16 02:42:37 +01:00
|
|
|
${{ runner.os }}-buildx-datapusher
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Get docker tag for datapusher image
|
|
|
|
id: datapusher
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/datapusher/Dockerfile)" >> $GITHUB_OUTPUT
|
2021-01-16 02:15:03 +01:00
|
|
|
|
|
|
|
- name: Build and push CKAN datapusher
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2021-01-16 02:15:03 +01:00
|
|
|
with:
|
|
|
|
context: ./images/datapusher
|
|
|
|
file: ./images/datapusher/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/datapusher:${{ steps.datapusher.outputs.IMAGE_TAG }}
|
|
|
|
ghcr.io/keitaroinc/datapusher:${{ steps.datapusher.outputs.IMAGE_TAG }}
|
2021-01-16 02:42:37 +01:00
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-datapusher
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-datapusher
|
2023-07-03 09:44:59 +02:00
|
|
|
|
|
|
|
build-psql-init:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-05 10:35:58 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-07-03 09:44:59 +02:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2023-07-03 09:44:59 +02:00
|
|
|
|
|
|
|
- name: Login to DockerHub
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2023-07-03 09:44:59 +02:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
|
|
|
|
|
|
- name: Login to GitHub Container Registry
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/login-action@v3
|
2023-07-03 09:44:59 +02:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
|
|
|
|
- name: Cache Docker layers
|
2024-03-05 14:01:05 +01:00
|
|
|
uses: actions/cache@v4
|
2023-07-03 09:44:59 +02:00
|
|
|
with:
|
|
|
|
path: /tmp/.buildx-cache-psql-init
|
|
|
|
key: ${{ runner.os }}-buildx-psql-init-${{ github.sha }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-buildx-psql-init
|
|
|
|
|
|
|
|
- name: Get docker tag for psql-init image
|
|
|
|
id: psql-init
|
|
|
|
run: |
|
2024-03-05 14:01:05 +01:00
|
|
|
echo "IMAGE_TAG=$(awk -F '=' '/IMAGE_TAG/{print $2}' ./images/psql-init/Dockerfile)" >> $GITHUB_OUTPUT
|
2023-07-03 09:44:59 +02:00
|
|
|
|
|
|
|
- name: Build and push psql-init
|
2024-03-05 10:35:58 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2023-07-03 09:44:59 +02:00
|
|
|
with:
|
2023-07-03 10:50:57 +02:00
|
|
|
context: ./images/psql-init
|
|
|
|
file: ./images/psql-init/Dockerfile
|
2023-07-03 09:44:59 +02:00
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
keitaro/psql-init:${{ steps.psql-init.outputs.IMAGE_TAG }}
|
2023-07-03 10:34:12 +02:00
|
|
|
ghcr.io/keitaroinc/psql-init:${{ steps.psql-init.outputs.IMAGE_TAG }}
|
2023-07-03 09:44:59 +02:00
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache-psql-init
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-psql-init
|