Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8109c677d6 | |||
|
371f2fa255
|
|||
|
b9f9f87068
|
|||
|
cd9815dfb3
|
@@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
---
|
||||
name: Cog release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_call:
|
||||
# inputs:
|
||||
# check-latest-tag-only:
|
||||
# type: boolean
|
||||
# required: false
|
||||
# default: true
|
||||
inputs:
|
||||
ref:
|
||||
type: string
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -17,10 +14,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
|
||||
|
||||
- run: |
|
||||
git config user.name gitea-bot
|
||||
@@ -47,5 +44,5 @@ jobs:
|
||||
- name: Upload github release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
body_path: ${{ steps.changelog.outputs.stdout }}
|
||||
body: ${{ steps.changelog.outputs.stdout }}
|
||||
tag_name: ${{ steps.release.outputs.version }}
|
||||
|
||||
@@ -27,10 +27,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
- name: Retrieve artifacts
|
||||
id: download
|
||||
uses: actions/download-artifact@v7
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: artifacts
|
||||
- name: Check if job errored
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
exit "$(cat exitcode)";
|
||||
fi
|
||||
- name: Clone blackbox repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
if: ${{ steps.check.outputs.code == 2 }}
|
||||
with:
|
||||
repository: xaked/blackbox
|
||||
|
||||
@@ -31,9 +31,9 @@ jobs:
|
||||
tofu_version: ${{ inputs.tofu-version }}
|
||||
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
- name: Clone blackbox repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
repository: xaked/blackbox
|
||||
path: blackbox
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
shell: bash
|
||||
run: printf "${{ steps.tfplan.outputs.exitcode }}" > exitcode;
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: artifacts
|
||||
path: |
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: Cog release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Create release
|
||||
runs-on: ubuntu-latest
|
||||
uses: ./.gitea/workflows/cog-release.yml
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone blackbox repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
repository: xaked/blackbox
|
||||
path: blackbox
|
||||
|
||||
@@ -9,7 +9,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
- name: Run Trivy vulnerability scanner in IaC mode (LOW/MED)
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
steps:
|
||||
# Git Checkout
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
token: ${{ secrets.gitea-token }}
|
||||
fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
# Upload MegaLinter artifacts
|
||||
- name: Archive production artifacts
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v6
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: MegaLinter reports
|
||||
path: |
|
||||
|
||||
@@ -22,10 +22,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
- name: Retrieve artifacts
|
||||
id: download
|
||||
uses: actions/download-artifact@v7
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: artifacts
|
||||
- name: Check if job errored
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
exit "$(cat exitcode)";
|
||||
fi
|
||||
- name: Clone blackbox repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
if: ${{ steps.check.outputs.code == 2 }}
|
||||
with:
|
||||
repository: xaked/blackbox
|
||||
|
||||
@@ -8,7 +8,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
- name: Install terraform docs
|
||||
|
||||
@@ -26,9 +26,9 @@ jobs:
|
||||
terraform_version: 1.7.5
|
||||
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
- name: Clone blackbox repo
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
repository: xaked/blackbox
|
||||
path: blackbox
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
shell: bash
|
||||
run: printf "${{ steps.tfplan.outputs.exitcode }}" > exitcode;
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: artifacts
|
||||
path: |
|
||||
|
||||
Reference in New Issue
Block a user