test: add option to disable cache in github action

pull/349/head
Rizky Maulana Nugraha 2021-11-26 19:26:02 +07:00 zatwierdzone przez GitHub
rodzic 868e195dfa
commit 7caa022f41
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -15,6 +15,11 @@ on:
# required: true # required: true
# default: slim # default: slim
workflow_dispatch: workflow_dispatch:
inputs:
no-cache:
description: Do not use cache when building the image
required: true
default: false
pull_request: pull_request:
branches: branches:
- develop - develop
@ -54,6 +59,7 @@ jobs:
with: with:
context: . context: .
file: Dockerfile file: Dockerfile
no-cache: ${{ github.event.inputs }}
push: false push: false
load: true load: true
tags: kartoza/postgis:manual-build tags: kartoza/postgis:manual-build
@ -124,6 +130,7 @@ jobs:
with: with:
context: . context: .
file: Dockerfile file: Dockerfile
no-cache: ${{ github.event.inputs }}
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 }}