mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-06-27 22:08:05 +00:00
Improve CI
This commit is contained in:
@@ -2,7 +2,13 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-script:
|
test-script:
|
||||||
@@ -112,6 +118,11 @@ jobs:
|
|||||||
bash -x backup.sh
|
bash -x backup.sh
|
||||||
echo "Generated backup files:"
|
echo "Generated backup files:"
|
||||||
ls -laR "$BACKUP_DIR"
|
ls -laR "$BACKUP_DIR"
|
||||||
|
- name: Test docker-bake.hcl contents
|
||||||
|
run: |
|
||||||
|
echo "Test if docker-bake.hcl have been generated by generate-docker-bake.sh..."
|
||||||
|
./generate-docker-bake.sh docker-bake-generated.hcl
|
||||||
|
cmp docker-bake.hcl docker-bake-generated.hcl
|
||||||
|
|
||||||
test-docker:
|
test-docker:
|
||||||
if: ${{ github.event_name == 'pull_request' || github.ref != 'refs/heads/main' }}
|
if: ${{ github.event_name == 'pull_request' || github.ref != 'refs/heads/main' }}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ TAGS_EXTRA="14 13 12"
|
|||||||
PLATFORMS="linux/amd64 linux/arm64 linux/arm/v7 linux/s390x linux/ppc64le"
|
PLATFORMS="linux/amd64 linux/arm64 linux/arm/v7 linux/s390x linux/ppc64le"
|
||||||
TAGS_EXTRA_2="11 10"
|
TAGS_EXTRA_2="11 10"
|
||||||
PLATFORMS_DEBIAN_2="linux/amd64 linux/arm64 linux/arm/v7"
|
PLATFORMS_DEBIAN_2="linux/amd64 linux/arm64 linux/arm/v7"
|
||||||
DOCKER_BAKE_FILE="docker-bake.hcl"
|
DOCKER_BAKE_FILE="${1:-docker-bake.hcl}"
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user