Skip to content

Commit

Permalink
clean up the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
siosonel committed Oct 22, 2023
1 parent 731d2bb commit e0ef67a
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 193 deletions.
102 changes: 0 additions & 102 deletions .github/workflows/CD-create-container-release.yml

This file was deleted.

File renamed without changes.
23 changes: 0 additions & 23 deletions .github/workflows/CD-publish-docker-image.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Release Packages"
name: "Publish Packages"

on:
push:
Expand All @@ -21,16 +21,7 @@ on:
description: Build secret

jobs:
unit_test:
uses: ./.github/workflows/CI-unit.yml
secrets: inherit # pragma: allowlist secret

integration_test:
uses: ./.github/workflows/CI-integration.yml
secrets: inherit # pragma: allowlist secret

build:
needs: [unit_test, integration_test]
publish:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/CD-publish-updated-image.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/CD-release-chain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Release Packages, Optional Image"

on:
push:
branches:
- TMP-pkg-release
- TMP-fake-release
paths-ignore:
- '**.md'
- '**.txt'
- '.**ignore'
- 'docs/**'
# TODO: what if package.dependencies, files were updated?
# this is meant to avoid triggering the on.push event for the version bump
- '**package*.json'

workflow_dispatch:
inputs:
build_secret:
type: string
description: Build secret

jobs:
unit_test:
uses: ./.github/workflows/CI-unit.yml
secrets: inherit # pragma: allowlist secret

integration_test:
uses: ./.github/workflows/CI-integration.yml
secrets: inherit # pragma: allowlist secret

publish_packages:
needs: [unit_test, integration_test]
uses: ./.github/workflows/CD-publish-packages.yml
secrets: inherit # pragma: allowlist secret

publish_app_image:
if: ${{ github.ref_name }} == 'publish-app-image'
needs: [ publish_packages ]
uses: ./.github/workflows/CD-publish-app-image.yml
secrets: inherit # pragma: allowlist secret

0 comments on commit e0ef67a

Please sign in to comment.