diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7cc5fb1..c4b2efd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,4 +1,5 @@ -# Docs: +# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json +# docs: https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/customizing-dependency-updates version: 2 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 9418a49..4c842c6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,4 +1,7 @@ -name: documentation +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json +# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions + +name: ๐Ÿ“š Documentation on: push: @@ -12,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: peter-evans/dockerhub-description@v4 # Action page: + - uses: peter-evans/dockerhub-description@v4 with: username: ${{ secrets.DOCKER_LOGIN }} password: ${{ secrets.DOCKER_USER_PASSWORD }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0206a3..5108f88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,34 +4,38 @@ name: ๐Ÿš€ Release on: - release: # Docs: - types: [published] + release: {types: [published]} + workflow_dispatch: {} jobs: - docker-image: - name: Build docker image + build-docker-image: + name: Build the docker image runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - {uses: gacts/github-slug@v1, id: slug} - - uses: docker/setup-qemu-action@v3 - - uses: docker/setup-buildx-action@v3 - - uses: docker/login-action@v3 # Action page: + - uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_LOGIN }} password: ${{ secrets.DOCKER_PASSWORD }} - - uses: docker/login-action@v3 # Action page: + - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - uses: docker/build-push-action@v6 # Action page: + - {uses: gacts/github-slug@v1, id: slug} + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 + - uses: docker/build-push-action@v6 with: context: . push: true platforms: linux/amd64,linux/arm64 tags: | - tarampampam/3proxy:${{ steps.slug.outputs.version-semantic }} - tarampampam/3proxy:latest - ghcr.io/${{ github.actor }}/3proxy:${{ steps.slug.outputs.version-semantic }} ghcr.io/${{ github.actor }}/3proxy:latest + ghcr.io/${{ github.actor }}/3proxy:${{ steps.slug.outputs.version-semantic }} + ghcr.io/${{ github.actor }}/3proxy:${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }} + ghcr.io/${{ github.actor }}/3proxy:${{ steps.slug.outputs.version-major }} + docker.io/tarampampam/3proxy:latest + docker.io/tarampampam/3proxy:${{ steps.slug.outputs.version-semantic }} + docker.io/tarampampam/3proxy:${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }} + docker.io/tarampampam/3proxy:${{ steps.slug.outputs.version-major }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 69f6e92..992b5bc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,16 +4,19 @@ name: ๐Ÿงช Tests on: + workflow_dispatch: {} push: branches: [master, main] + paths-ignore: ['**.md'] tags-ignore: ['**'] - pull_request: {} + pull_request: + paths-ignore: ['**.md'] concurrency: group: ${{ github.ref }} cancel-in-progress: true -jobs: # Docs: +jobs: gitleaks: name: Check for GitLeaks runs-on: ubuntu-latest