Skip to content

Commit

Permalink
ci: fix cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Alxandr committed Oct 10, 2024
1 parent 447247a commit 4d34132
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/scripts/build-push-app.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ import { getApp } from "./_meta.mts";
import * as actions from "@actions/core";

const argv = yargs(hideBin(process.argv))
.command("<name>")
.demandCommand(1)
.positional("name", {
type: "string",
required: true,
})
.option("tag", {
type: "string",
})
.parse();

const app = getApp(argv.name);
console.log(argv);

const app = getApp(argv._[0]);
const tag =
argv.tag || (process.env.GITHUB_SHA ?? "").substring(0, 7) || "latest";

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cd-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- ci/cd-fix

env:
registry: ghcr.io
Expand All @@ -21,6 +22,7 @@ jobs:
needs: find-verticals

strategy:
fail-fast: false
matrix: ${{ fromJson(needs.find-verticals.outputs.matrix) }}

uses: ./.github/workflows/_deploy-app.yml
Expand Down

0 comments on commit 4d34132

Please sign in to comment.