From 73b787ba48f51c2980eb5dd58853d0a5ea06b6d9 Mon Sep 17 00:00:00 2001 From: Cyril B Date: Wed, 3 Apr 2024 17:23:48 +0200 Subject: [PATCH] cicd: remove unused workflows [skip ci] --- .github/workflows/build_tzsafe.yml | 4 +- .../pre_release_bump_major_version.yml | 51 ------------------- .../pre_release_bump_minor_version.yml | 51 ------------------- .../pre_release_bump_patch_version.yml | 51 ------------------- 4 files changed, 2 insertions(+), 155 deletions(-) delete mode 100644 .github/workflows/pre_release_bump_major_version.yml delete mode 100644 .github/workflows/pre_release_bump_minor_version.yml delete mode 100644 .github/workflows/pre_release_bump_patch_version.yml diff --git a/.github/workflows/build_tzsafe.yml b/.github/workflows/build_tzsafe.yml index 19c49ae0..f30a5299 100644 --- a/.github/workflows/build_tzsafe.yml +++ b/.github/workflows/build_tzsafe.yml @@ -45,7 +45,7 @@ jobs: append_to_pre_release_tag: rc - name: Testing - if: ${{ startsWith(github.ref,'refs/heads/') || github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }} uses: actions/setup-node@v4 with: node-version: "18.x" @@ -75,7 +75,7 @@ jobs: cache-to: type=gha,mode=max build-args: ENV=dev - name: Build and push release version - if: ${{ ! github.event_name != 'pull_request' && github.ref == 'refs/heads/release' }} + if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/release' }} uses: docker/build-push-action@v4 with: file: ./Dockerfile diff --git a/.github/workflows/pre_release_bump_major_version.yml b/.github/workflows/pre_release_bump_major_version.yml deleted file mode 100644 index 471c05e7..00000000 --- a/.github/workflows/pre_release_bump_major_version.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Pre release bump major version - -on: - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - docker: - name: "Docker build" - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Bump version and push tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - if: ${{ ! github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - release_branches: release - pre_release_branches: main - default_bump: false - default_prerelease_bump: major - append_to_pre_release_tag: rc - - - name: Build and push staging version - if: ${{ ! github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} - uses: docker/build-push-action@v4 - with: - file: ./Dockerfile - push: true - tags: | - ghcr.io/marigold-dev/tzsafe:${{ steps.tag_version.outputs.new_version}} - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: ENV=prod - diff --git a/.github/workflows/pre_release_bump_minor_version.yml b/.github/workflows/pre_release_bump_minor_version.yml deleted file mode 100644 index 3bd37728..00000000 --- a/.github/workflows/pre_release_bump_minor_version.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Pre release bump minor version - -on: - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - docker: - name: "Docker build" - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Bump version and push tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - if: ${{ ! github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - release_branches: release - pre_release_branches: main - default_bump: false - default_prerelease_bump: minor - append_to_pre_release_tag: rc - - - name: Build and push staging version - if: ${{ ! github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} - uses: docker/build-push-action@v4 - with: - file: ./Dockerfile - push: true - tags: | - ghcr.io/marigold-dev/tzsafe:${{ steps.tag_version.outputs.new_version}} - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: ENV=prod - diff --git a/.github/workflows/pre_release_bump_patch_version.yml b/.github/workflows/pre_release_bump_patch_version.yml deleted file mode 100644 index 4a750e50..00000000 --- a/.github/workflows/pre_release_bump_patch_version.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Pre release bump patch version - -on: - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - docker: - name: "Docker build" - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Bump version and push tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - if: ${{ ! github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - release_branches: release - pre_release_branches: main - default_bump: false - default_prerelease_bump: patch - append_to_pre_release_tag: rc - - - name: Build and push staging version - if: ${{ ! github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} - uses: docker/build-push-action@v4 - with: - file: ./Dockerfile - push: true - tags: | - ghcr.io/marigold-dev/tzsafe:${{ steps.tag_version.outputs.new_version}} - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: ENV=prod -