diff --git a/.github/workflows/action-lint.yaml b/.github/workflows/action-lint.yaml new file mode 100644 index 0000000..bb1bc55 --- /dev/null +++ b/.github/workflows/action-lint.yaml @@ -0,0 +1,23 @@ +name: Action Lint + +on: + pull_request: + +permissions: + checks: write + contents: read + pull-requests: write + +jobs: + action-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + - name: actionlint + uses: reviewdog/action-actionlint@v1.65.2 + with: + github_token: ${{ secrets.GH_PAT }} + reporter: github-pr-review diff --git a/.github/workflows/bad.yaml b/.github/workflows/bad.yaml new file mode 100644 index 0000000..fd9e1dc --- /dev/null +++ b/.github/workflows/bad.yaml @@ -0,0 +1,61 @@ +name: Build and push artifacts + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + pull-requests: write + +jobs: + Artifactory_Login: + uses: MapColonies/shared-workflows/actions/artifactory-login@artifactory-login-v1.0.0 + with: + registry: ACR_URL + username: ACR_PUSH_USER + password: ACR_PUSH_TOKEN + + Build_Docker_Image: + uses: MapColonies/shared-workflows/actions/build-docker@build-docker-v1.1.0 + with: + # for example + # domain: infra + domain: YOUR-DOMAIN + registry: ACR_URL + + Push_Docker_Image: + uses: MapColonies/shared-workflows/actions/push-docker@push-docker-v1.0.1 + with: + # for example + # image_name: scaler + # image_tag: v1.0.0 + image_name: DOCKER_IMAGE_NAME + image_tag: DOCKER_IMAGE_TAG + + + Build_and_Push_Helm_Chart: + uses: MapColonies/shared-workflows/actions/build-and-push-helm@build-and-push-helm-v1.0.1 + with: + # for example + # context: ./infra/monitoring + # domain: infra + context: YOUR-PATH + domain: YOUR-DOMAIN + registry: ACR_URL + + update_artifacts_file: + uses: MapColonies/shared-workflows/actions/update-artifacts-file@update-artifacts-file-v1.1.1 + with: + # Example: + # domain: infra + # artifact_name: sftpgo + # artifact_tag: v1.2.3 + # type: docker + domain: YOUR-DOMAIN + artifact_name: ARTIFACT_NAME + artifact_tag: ARTIFACT_TAG + type: ARTIFACT_TYPE + registry: ACR_URL + github_token: YOUR_GITHUB_TOKEN