Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Mar 7, 2023
1 parent 2cf00a5 commit 237c819
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ name: CI

on:
push:
branches:
- 'main'
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'

jobs:
test-script:
Expand Down Expand Up @@ -112,6 +118,11 @@ jobs:
bash -x backup.sh
echo "Generated backup files:"
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:
if: ${{ github.event_name == 'pull_request' || github.ref != 'refs/heads/main' }}
Expand Down
2 changes: 1 addition & 1 deletion generate-docker-bake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TAGS_EXTRA="14 13 12"
PLATFORMS="linux/amd64 linux/arm64 linux/arm/v7 linux/s390x linux/ppc64le"
TAGS_EXTRA_2="11 10"
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")"

Expand Down

0 comments on commit 237c819

Please sign in to comment.