mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 07:31:05 -05:00
ci: remove deployment configuration from ci (#5628)
Simplify the CI workflows by skipping GitHub deployments configuration. We don't use deployments in any other place at the moment.
This commit is contained in:
parent
6047e3f732
commit
e0c8376c3a
2 changed files with 1 additions and 50 deletions
49
.github/workflows/cd.yml
vendored
49
.github/workflows/cd.yml
vendored
|
@ -17,7 +17,6 @@ jobs:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
deployments: write
|
|
||||||
issues: write
|
issues: write
|
||||||
packages: write
|
packages: write
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -106,14 +105,6 @@ jobs:
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Start deployment
|
|
||||||
uses: bobheadxi/deployments@v1.5.0
|
|
||||||
id: deployment
|
|
||||||
with:
|
|
||||||
step: start
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
env: Production
|
|
||||||
|
|
||||||
- name: Build and Push Image
|
- name: Build and Push Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
@ -133,21 +124,6 @@ jobs:
|
||||||
${{ env.CONTAINER_IMAGE_ID }}
|
${{ env.CONTAINER_IMAGE_ID }}
|
||||||
target: "${{ matrix.images.target }}"
|
target: "${{ matrix.images.target }}"
|
||||||
|
|
||||||
- name: Update deployment
|
|
||||||
uses: bobheadxi/deployments@v1.5.0
|
|
||||||
# We depend on the 'deployment' step outputs, so we can't run this step
|
|
||||||
# if the 'deployment' step didn't run. This can happen if any step
|
|
||||||
# before the 'deployment' step fails. That's why 'always()' is not
|
|
||||||
# suitable here.
|
|
||||||
if: steps.deployment.conclusion != 'cancelled' && steps.deployment.conclusion != 'skipped'
|
|
||||||
with:
|
|
||||||
step: finish
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
status: ${{ job.status }}
|
|
||||||
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
|
||||||
env: ${{ steps.deployment.outputs.env }}
|
|
||||||
env_url: https://github.com/super-linter/super-linter
|
|
||||||
|
|
||||||
- name: Create Issue on Failure
|
- name: Create Issue on Failure
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -174,7 +150,6 @@ jobs:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
deployments: write
|
|
||||||
issues: write
|
issues: write
|
||||||
packages: write
|
packages: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
@ -187,15 +162,6 @@ jobs:
|
||||||
manifest-file: .github/release-please/.release-please-manifest.json
|
manifest-file: .github/release-please/.release-please-manifest.json
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Start deployment
|
|
||||||
if: steps.release.outputs.release_created
|
|
||||||
uses: bobheadxi/deployments@v1.5.0
|
|
||||||
id: deployment
|
|
||||||
with:
|
|
||||||
step: start
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
env: Release
|
|
||||||
|
|
||||||
- name: Configure release metedata
|
- name: Configure release metedata
|
||||||
if: steps.release.outputs.release_created
|
if: steps.release.outputs.release_created
|
||||||
# shellcheck disable=SC2062
|
# shellcheck disable=SC2062
|
||||||
|
@ -264,21 +230,6 @@ jobs:
|
||||||
git push --force origin ${{ env.SEMVER_MAJOR_VERSION }}
|
git push --force origin ${{ env.SEMVER_MAJOR_VERSION }}
|
||||||
git push --force origin latest
|
git push --force origin latest
|
||||||
|
|
||||||
- name: Update deployment
|
|
||||||
uses: bobheadxi/deployments@v1.5.0
|
|
||||||
# We depend on the 'deployment' step outputs, so we can't run this step
|
|
||||||
# if the 'deployment' step didn't run. This can happen if any step
|
|
||||||
# before the 'deployment' step fails. That's why 'always()' is not
|
|
||||||
# suitable here.
|
|
||||||
if: steps.deployment.conclusion != 'cancelled' && steps.deployment.conclusion != 'skipped'
|
|
||||||
with:
|
|
||||||
step: finish
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
status: ${{ job.status }}
|
|
||||||
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
|
||||||
env: ${{ steps.deployment.outputs.env }}
|
|
||||||
env_url: https://github.com/super-linter/super-linter
|
|
||||||
|
|
||||||
- name: Create Issue on Failure
|
- name: Create Issue on Failure
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
name: Build and Test
|
name: Build and Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
concurrency:
|
concurrency:
|
||||||
# Ref: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
|
# Ref: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
|
||||||
# github.head_ref: head_ref or source branch of the pull request
|
# github.head_ref: head_ref or source branch of the pull request
|
||||||
|
|
Loading…
Reference in a new issue