* Gh-action-fix
pull/339/head^2
Rizky Maulana Nugraha 2021-11-28 12:38:57 +07:00 zatwierdzone przez GitHub
rodzic 5b94d52c6e
commit f5bc38fddb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 20 dodań i 34 usunięć

Wyświetl plik

@ -1,8 +1,6 @@
# Ignore everything except selected directory .github
** .venv
venv
!base_build .docs
base_build/README.md sample
.env
!scripts
!scenario_tests/utils/requirements.txt

Wyświetl plik

@ -15,16 +15,6 @@ on:
# required: true # required: true
# default: slim # default: slim
workflow_dispatch: workflow_dispatch:
inputs:
cache-invalidation-number:
description: Temporarily increase this number to invalidate caches for current build
required: true
default: 1
no-cache:
description: Do not use cache when building the image
required: true
type: boolean
default: false
pull_request: pull_request:
branches: branches:
- develop - develop
@ -64,7 +54,6 @@ jobs:
with: with:
context: . context: .
file: Dockerfile file: Dockerfile
no-cache: ${{ github.event.inputs.no-cache }}
push: false push: false
load: true load: true
tags: kartoza/postgis:manual-build tags: kartoza/postgis:manual-build
@ -77,11 +66,11 @@ jobs:
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }} POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }} POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }} POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }}
# cache-from: | cache-from: |
# type=gha,scope=test-${{ github.event.inputs.cache-invalidation-number }}- type=gha,scope=test
# type=gha,scope=prod-${{ github.event.inputs.cache-invalidation-number }}- type=gha,scope=prod
# type=gha,scope=base-${{ github.event.inputs.cache-invalidation-number }}- type=gha,scope=base
cache-to: type=gha,scope=test-${{ github.event.inputs.cache-invalidation-number }}- cache-to: type=gha,scope=test
target: postgis-test target: postgis-test
- name: Run scenario test ${{ matrix.scenario }} - name: Run scenario test ${{ matrix.scenario }}
@ -135,7 +124,6 @@ jobs:
with: with:
context: . context: .
file: Dockerfile file: Dockerfile
no-cache: ${{ github.event.inputs.no-cache }}
push: true push: true
tags: | tags: |
${{ steps.docker_meta.outputs.tags }}-${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }} ${{ steps.docker_meta.outputs.tags }}-${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}
@ -148,9 +136,9 @@ jobs:
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }} POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }} POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }} POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }}
# cache-from: | cache-from: |
# type=gha,scope=test-${{ github.event.inputs.cache-invalidation-number }}- type=gha,scope=test
# type=gha,scope=prod-${{ github.event.inputs.cache-invalidation-number }}- type=gha,scope=prod
# type=gha,scope=base-${{ github.event.inputs.cache-invalidation-number }}- type=gha,scope=base
cache-to: type=gha,scope=test-${{ github.event.inputs.cache-invalidation-number }}- cache-to: type=gha,scope=test
target: postgis-test target: postgis-test

Wyświetl plik

@ -40,8 +40,8 @@ ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \ LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 LC_ALL=en_US.UTF-8
COPY base_build/scripts/locale.gen /etc/all.locale.gen COPY ./base_build/scripts/locale.gen /etc/all.locale.gen
COPY base_build/scripts/locale-filter.sh /etc/locale-filter.sh COPY ./base_build/scripts/locale-filter.sh /etc/locale-filter.sh
RUN if [ -z "${GENERATE_ALL_LOCALE}" ] || [ $GENERATE_ALL_LOCALE -eq 0 ]; \ RUN if [ -z "${GENERATE_ALL_LOCALE}" ] || [ $GENERATE_ALL_LOCALE -eq 0 ]; \
then \ then \
cat /etc/all.locale.gen | grep "${LANG}" > /etc/locale.gen; \ cat /etc/all.locale.gen | grep "${LANG}" > /etc/locale.gen; \
@ -126,7 +126,7 @@ RUN apt-get -y --purge autoremove \
EXPOSE 5432 EXPOSE 5432
# Copy scripts # Copy scripts
ADD scripts /scripts ADD ./scripts /scripts
WORKDIR /scripts WORKDIR /scripts
RUN chmod +x *.sh RUN chmod +x *.sh
@ -145,7 +145,7 @@ ENTRYPOINT /scripts/docker-entrypoint.sh
############################################################################## ##############################################################################
FROM postgis-prod AS postgis-test FROM postgis-prod AS postgis-test
COPY scenario_tests/utils/requirements.txt /lib/utils/requirements.txt COPY ./scenario_tests/utils/requirements.txt /lib/utils/requirements.txt
RUN set -eux \ RUN set -eux \
&& export DEBIAN_FRONTEND=noninteractive \ && export DEBIAN_FRONTEND=noninteractive \