Skip to content

Commit b5b4b0c

Browse files
authored
Add deploy concurrency (#188)
* update flake.nix * add concurrency group to build-deploy workflow
1 parent 82bc171 commit b5b4b0c

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/build-deploy-app.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ on:
99
- "Makefile"
1010
- ".mvn"
1111
- ".gitignore"
12+
13+
concurrency:
14+
group: ${{github.workflow}}-${{github.ref}}
15+
cancel-in-progress: true
16+
1217
jobs:
1318
build-push:
1419
name: Build and push to registries
1520
# When releasing, the Maven release plugin will create two commits -
1621
# we only want this job to run once, so we exclude one of the commits.
17-
if: ! contains(${{ github.event.head_commit.message }}, "prepare for next development iteration")
22+
if: ${{ !contains(${{ github.event.head_commit.message }}, "prepare for next development iteration") }}
1823
runs-on: ubuntu-latest
1924
permissions:
2025
contents: read
@@ -206,4 +211,4 @@ jobs:
206211
]
207212
}
208213
env:
209-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
214+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

flake.nix

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@
1010
flake-parts.lib.mkFlake {inherit inputs;} {
1111
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
1212
perSystem = {
13-
config,
14-
self',
15-
inputs',
1613
pkgs,
17-
system,
1814
...
1915
}: {
2016
devShells.default = pkgs.mkShell {
2117
name = "dapla-pseudo-service";
22-
packages = with pkgs; [gnumake maven openjdk];
18+
packages = with pkgs; [
19+
gnumake
20+
nixd
21+
maven
22+
openjdk
23+
yaml-language-server
24+
];
2325
};
2426
formatter = pkgs.alejandra;
2527
};

0 commit comments

Comments
 (0)