Skip to content

Commit dda2609

Browse files
⚡ Improve Taskfiles and workflows with new options
Added: - better docker building; - release workflow handling; - syncing common files with template repo;
1 parent db27941 commit dda2609

File tree

8 files changed

+294
-306
lines changed

8 files changed

+294
-306
lines changed

.github/workflows/cron-check-dependencies.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
run: task docker:cmds
4444

4545
- name: Build and push test image
46+
env:
47+
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4649
run: task docker:push
4750

4851
- name: Inspect image

.github/workflows/manual-update-version.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ on:
2121
permissions:
2222
contents: write
2323
pull-requests: write
24-
packages: write
2524

2625
jobs:
2726
update:
2827
name: Update version and push release branch
29-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-24.04-arm
3029
steps:
3130
- name: Checkout
3231
uses: actions/checkout@v5
@@ -70,29 +69,6 @@ jobs:
7069
esac
7170
echo "REL_VERSION=$(task version:get)" >> "$GITHUB_OUTPUT"
7271
73-
- name: Install Docker Buildx
74-
uses: docker/setup-buildx-action@v3
75-
with:
76-
install: true
77-
78-
- name: Install QEMU
79-
uses: docker/setup-qemu-action@v3
80-
with:
81-
image: tonistiigi/binfmt:latest
82-
platforms: amd64,arm64
83-
84-
- name: Get Docker commands
85-
run: task docker:cmds
86-
87-
- name: Build and push test image
88-
env:
89-
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
90-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91-
run: task docker:push
92-
93-
- name: Inspect image
94-
run: task docker:push:inspect
95-
9672
- name: Get template
9773
env:
9874
VERSION_SUFFIX: ""

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
.venv/
99
.envrc
1010
.env
11+
.tmp

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ repos:
2424
- id: trailing-whitespace
2525
- repo: local
2626
hooks:
27-
- id: action
28-
name: action
27+
- id: actionlint
28+
name: actionlint
2929
entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work rhysd/actionlint:latest -color'
3030
language: system
3131
pass_filenames: false
32-
- id: docker
33-
name: docker
32+
- id: hadolint
33+
name: hadolint
3434
entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work hadolint/hadolint:latest-debian hadolint Dockerfile'
3535
language: system
3636
pass_filenames: false
37-
- id: shell
38-
name: shell
37+
- id: shellcheck
38+
name: shellcheck
3939
entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work koalaman/shellcheck:stable -x -S style entrypoint.sh'
4040
language: system
4141
pass_filenames: false
42-
- id: yaml
43-
name: yaml
42+
- id: yamllint
43+
name: yamllint
4444
entry: bash -lc 'docker run --rm -v "$PWD:/work" -w /work cytopia/yamllint -c .yamllint.yml .'
4545
language: system
4646
pass_filenames: false

0 commit comments

Comments
 (0)