diff --git a/.github/workflows/deploy-ALPHA-flavors.yml b/.github/workflows/deploy-ALPHA-flavors.yml index 74f0c27b07c..b100835e9e2 100644 --- a/.github/workflows/deploy-ALPHA-flavors.yml +++ b/.github/workflows/deploy-ALPHA-flavors.yml @@ -110,7 +110,6 @@ jobs: BUILD_DATE=${{ env.BUILD_DATE }} BUILD_REVISION=${{ github.sha }} BUILD_VERSION=alpha - --squash # Enable image squashing to produce a single-layer image load: false push: true secrets: | @@ -118,24 +117,23 @@ jobs: tags: | ghcr.io/oxsecurity/megalinter-${{ matrix.flavor }}:alpha - - name: Build Worker Image - uses: docker/build-push-action@v6 - with: - context: . - file: Dockerfile-worker - platforms: linux/amd64 - build-args: | - MEGALINTER_BASE_IMAGE=ghcr.io/oxsecurity/megalinter-${{ matrix.flavor }}:alpha - BUILD_DATE=${{ env.BUILD_DATE }} - BUILD_REVISION=${{ github.sha }} - BUILD_VERSION=alpha - --squash # Enable image squashing to produce a single-layer image - load: false - push: true - secrets: | - GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - tags: | - ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:alpha + # - name: Build Worker Image + # uses: docker/build-push-action@v6 + # with: + # context: . + # file: Dockerfile-worker + # platforms: linux/amd64 + # build-args: | + # MEGALINTER_BASE_IMAGE=ghcr.io/oxsecurity/megalinter-${{ matrix.flavor }}:alpha + # BUILD_DATE=${{ env.BUILD_DATE }} + # BUILD_REVISION=${{ github.sha }} + # BUILD_VERSION=alpha + # load: false + # push: true + # secrets: | + # GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + # tags: | + # ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:alpha ############################################## # Check Docker image security with Trivy # @@ -143,7 +141,7 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: - image-ref: 'ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:alpha' + image-ref: ghcr.io/oxsecurity/megalinter-${{ matrix.flavor }}:alpha format: 'table' exit-code: '1' ignore-unfixed: true diff --git a/.github/workflows/deploy-ALPHA.yml b/.github/workflows/deploy-ALPHA.yml index 55effafb498..0bf97ad032a 100644 --- a/.github/workflows/deploy-ALPHA.yml +++ b/.github/workflows/deploy-ALPHA.yml @@ -99,7 +99,6 @@ jobs: BUILD_DATE=${{ env.BUILD_DATE }} BUILD_REVISION=${{ github.sha }} BUILD_VERSION=alpha - --squash # Enable image squashing to produce a single-layer image load: false push: true secrets: | @@ -118,7 +117,6 @@ jobs: BUILD_DATE=${{ env.BUILD_DATE }} BUILD_REVISION=${{ github.sha }} BUILD_VERSION=alpha - --squash # Enable image squashing to produce a single-layer image load: false push: true secrets: | @@ -127,21 +125,20 @@ jobs: ghcr.io/oxsecurity/megalinter:alpha # ghcr.io/oxsecurity/megalinter:alpha-${{ github.sha }} - - name: Build & Push Worker Docker Image - uses: docker/build-push-action@v6 - with: - context: . - file: Dockerfile-worker - platforms: linux/amd64 - build-args: | - MEGALINTER_BASE_IMAGE=ghcr.io/oxsecurity/megalinter:alpha - BUILD_DATE=${{ env.BUILD_DATE }} - BUILD_REVISION=${{ github.sha }} - BUILD_VERSION=alpha - --squash # Enable image squashing to produce a single-layer image - load: false - push: true - secrets: | - GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - tags: | - ghcr.io/oxsecurity/megalinter-worker:alpha + # - name: Build & Push Worker Docker Image + # uses: docker/build-push-action@v6 + # with: + # context: . + # file: Dockerfile-worker + # platforms: linux/amd64 + # build-args: | + # MEGALINTER_BASE_IMAGE=ghcr.io/oxsecurity/megalinter:alpha + # BUILD_DATE=${{ env.BUILD_DATE }} + # BUILD_REVISION=${{ github.sha }} + # BUILD_VERSION=alpha + # load: false + # push: true + # secrets: | + # GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + # tags: | + # ghcr.io/oxsecurity/megalinter-worker:alpha diff --git a/.github/workflows/deploy-BETA-flavors.yml b/.github/workflows/deploy-BETA-flavors.yml index b40c111a3ce..d47e87a7014 100644 --- a/.github/workflows/deploy-BETA-flavors.yml +++ b/.github/workflows/deploy-BETA-flavors.yml @@ -127,17 +127,17 @@ jobs: tags: | type=raw,value= - - name: Docker Metadata action (Worker Docker Hub) - uses: docker/metadata-action@v5.5.1 - id: meta-w-dhub - with: - images: | - name=docker.io/${{ github.repository }}-worker-${{ matrix.flavor }} - flavor: | - latest=false - prefix=beta - tags: | - type=raw,value= + # - name: Docker Metadata action (Worker Docker Hub) + # uses: docker/metadata-action@v5.5.1 + # id: meta-w-dhub + # with: + # images: | + # name=docker.io/${{ github.repository }}-worker-${{ matrix.flavor }} + # flavor: | + # latest=false + # prefix=beta + # tags: | + # type=raw,value= - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -170,7 +170,6 @@ jobs: BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} BUILD_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} BUILD_REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image load: false push: ${{ github.event_name != 'pull_request' }} secrets: | @@ -183,29 +182,28 @@ jobs: workflow: mirror-docker-image.yml inputs: '{ "source-image": "${{ steps.meta.outputs.tags }}", "target-image": "${{ steps.meta-dhub.outputs.tags }}" }' - - name: Build Worker Image - uses: docker/build-push-action@v6 - with: - context: . - file: Dockerfile-worker - platforms: linux/amd64 - build-args: | - MEGALINTER_BASE_IMAGE=${{ fromJson(steps.meta-w.outputs.json).tags[0]}} - BUILD_DATE=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.created'] }} - BUILD_VERSION=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.version'] }} - BUILD_REVISION=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image - load: false - push: ${{ github.event_name != 'pull_request' }} - secrets: | - GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - tags: ${{ steps.meta-w.outputs.tags }} - - - name: Invoke Mirror docker image workflow (Main image) - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: mirror-docker-image.yml - inputs: '{ "source-image": "${{ steps.meta-w.outputs.tags }}", "target-image": "${{ steps.meta-w-dhub.outputs.tags }}" }' + # - name: Build Worker Image + # uses: docker/build-push-action@v6 + # with: + # context: . + # file: Dockerfile-worker + # platforms: linux/amd64 + # build-args: | + # MEGALINTER_BASE_IMAGE=${{ fromJson(steps.meta-w.outputs.json).tags[0]}} + # BUILD_DATE=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.created'] }} + # BUILD_VERSION=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.version'] }} + # BUILD_REVISION=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.revision'] }} + # load: false + # push: ${{ github.event_name != 'pull_request' }} + # secrets: | + # GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + # tags: ${{ steps.meta-w.outputs.tags }} + + # - name: Invoke Mirror docker image workflow (Main image) + # uses: benc-uk/workflow-dispatch@v1 + # with: + # workflow: mirror-docker-image.yml + # inputs: '{ "source-image": "${{ steps.meta-w.outputs.tags }}", "target-image": "${{ steps.meta-w-dhub.outputs.tags }}" }' ############################################## # Check Docker image security with Trivy # diff --git a/.github/workflows/deploy-BETA-linters.yml b/.github/workflows/deploy-BETA-linters.yml index 29495608b14..e21f95da7b1 100644 --- a/.github/workflows/deploy-BETA-linters.yml +++ b/.github/workflows/deploy-BETA-linters.yml @@ -243,7 +243,6 @@ jobs: BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} BUILD_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} BUILD_REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image load: false push: ${{ github.event_name != 'pull_request' }} secrets: | @@ -277,7 +276,7 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: - image-ref: "${{ fromJson(steps.meta-dhub.outputs.json).tags[0]}}" + image-ref: "${{ fromJson(steps.meta.outputs.json).tags[0]}}" format: "table" exit-code: "1" ignore-unfixed: true diff --git a/.github/workflows/deploy-BETA.yml b/.github/workflows/deploy-BETA.yml index bfdaea7fccb..cb315a592a3 100644 --- a/.github/workflows/deploy-BETA.yml +++ b/.github/workflows/deploy-BETA.yml @@ -116,14 +116,14 @@ jobs: tags: | type=raw,value=beta - - name: Docker Metadata action (Worker) - uses: docker/metadata-action@v5.5.1 - id: meta-w - with: - images: | - name=ghcr.io/${{ github.repository }}-worker - tags: | - type=raw,value=beta + # - name: Docker Metadata action (Worker) + # uses: docker/metadata-action@v5.5.1 + # id: meta-w + # with: + # images: | + # name=ghcr.io/${{ github.repository }}-worker + # tags: | + # type=raw,value=beta - name: Docker Metadata action (Worker Server) uses: docker/metadata-action@v5.5.1 @@ -157,7 +157,6 @@ jobs: BUILD_DATE=${{ fromJSON(steps.meta-s.outputs.json).labels['org.opencontainers.image.created'] }} BUILD_VERSION=${{ fromJSON(steps.meta-s.outputs.json).labels['org.opencontainers.image.version'] }} BUILD_REVISION=${{ fromJSON(steps.meta-s.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image load: false push: ${{ github.event_name != 'pull_request' }} secrets: | @@ -180,7 +179,6 @@ jobs: BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} BUILD_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} BUILD_REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image load: false push: ${{ github.event_name != 'pull_request' }} secrets: | @@ -193,29 +191,28 @@ jobs: workflow: mirror-docker-image.yml inputs: '{ "source-image": "${{ steps.meta.outputs.tags }}", "target-image": "${{ steps.meta-dhub.outputs.tags }}" }' - - name: Build & Push Docker Worker Image - uses: docker/build-push-action@v6 - with: - context: . - file: Dockerfile-worker - platforms: linux/amd64 - build-args: | - MEGALINTER_BASE_IMAGE=${{ fromJson(steps.meta-w.outputs.json).tags[0]}} - BUILD_DATE=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.created'] }} - BUILD_VERSION=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.version'] }} - BUILD_REVISION=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image - load: false - push: ${{ github.event_name != 'pull_request' }} - secrets: | - GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - tags: ${{ steps.meta-w.outputs.tags }} - - - name: Invoke Mirror docker image workflow (Worker image) - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: mirror-docker-image.yml - inputs: '{ "source-image": "${{ steps.meta-w.outputs.tags }}", "target-image": "${{ steps.meta-w-dhub.outputs.tags }}" }' + # - name: Build & Push Docker Worker Image + # uses: docker/build-push-action@v6 + # with: + # context: . + # file: Dockerfile-worker + # platforms: linux/amd64 + # build-args: | + # MEGALINTER_BASE_IMAGE=${{ fromJson(steps.meta-w.outputs.json).tags[0]}} + # BUILD_DATE=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.created'] }} + # BUILD_VERSION=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.version'] }} + # BUILD_REVISION=${{ fromJSON(steps.meta-w.outputs.json).labels['org.opencontainers.image.revision'] }} + # load: false + # push: ${{ github.event_name != 'pull_request' }} + # secrets: | + # GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + # tags: ${{ steps.meta-w.outputs.tags }} + + # - name: Invoke Mirror docker image workflow (Worker image) + # uses: benc-uk/workflow-dispatch@v1 + # with: + # workflow: mirror-docker-image.yml + # inputs: '{ "source-image": "${{ steps.meta-w.outputs.tags }}", "target-image": "${{ steps.meta-w-dhub.outputs.tags }}" }' # ############################### # # Run tests for code coverage # @@ -234,7 +231,7 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: - image-ref: "${{ steps.meta-dhub.outputs.tags }}" + image-ref: "${{ steps.meta.outputs.tags }}" format: 'table' exit-code: '1' ignore-unfixed: true diff --git a/.github/workflows/deploy-DEV-linters.yml b/.github/workflows/deploy-DEV-linters.yml index fe4d23d4b9c..e36d3241f49 100644 --- a/.github/workflows/deploy-DEV-linters.yml +++ b/.github/workflows/deploy-DEV-linters.yml @@ -198,7 +198,6 @@ jobs: BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} BUILD_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} BUILD_REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image load: true push: false secrets: | diff --git a/.github/workflows/deploy-DEV.yml b/.github/workflows/deploy-DEV.yml index bdc9a2ea499..f48968072a9 100644 --- a/.github/workflows/deploy-DEV.yml +++ b/.github/workflows/deploy-DEV.yml @@ -92,7 +92,6 @@ jobs: BUILD_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} BUILD_REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} MEGA_LINTER_BASE_IMAGE="oxsecurity/megalinter:beta" - --squash # Enable image squashing to produce a single-layer image load: true push: false secrets: | @@ -121,7 +120,6 @@ jobs: BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} BUILD_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} BUILD_REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image load: true push: false secrets: | @@ -149,7 +147,6 @@ jobs: BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }} BUILD_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} BUILD_REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} - --squash # Enable image squashing to produce a single-layer image load: true push: false secrets: | diff --git a/.github/workflows/deploy-RELEASE-flavors.yml b/.github/workflows/deploy-RELEASE-flavors.yml index 5c346769839..cfb5803a125 100644 --- a/.github/workflows/deploy-RELEASE-flavors.yml +++ b/.github/workflows/deploy-RELEASE-flavors.yml @@ -98,7 +98,6 @@ jobs: BUILD_DATE=${{ env.BUILD_DATE }} BUILD_REVISION=${{ github.sha }} BUILD_VERSION=${{ github.event.release.tag_name }} - --squash # Enable image squashing to produce a single-layer image load: false push: true secrets: | @@ -124,42 +123,41 @@ jobs: workflow: mirror-docker-image.yml inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-${{ matrix.flavor }}:v8", "target-image": "docker.io/oxsecurity/megalinter-${{ matrix.flavor }}:latest" }' - - name: Build Worker Image - uses: docker/build-push-action@v6 - with: - context: . - file: Dockerfile-release - platforms: linux/amd64 - build-args: | - MEGALINTER_BASE_IMAGE=docker.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:beta - BUILD_DATE=${{ env.BUILD_DATE }} - BUILD_REVISION=${{ github.sha }} - BUILD_VERSION=${{ github.event.release.tag_name }} - --squash # Enable image squashing to produce a single-layer image - load: false - push: true - secrets: | - GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - tags: | - ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8 - ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:${{ github.event.release.tag_name }} - ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:latest + # - name: Build Worker Image + # uses: docker/build-push-action@v6 + # with: + # context: . + # file: Dockerfile-release + # platforms: linux/amd64 + # build-args: | + # MEGALINTER_BASE_IMAGE=docker.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:beta + # BUILD_DATE=${{ env.BUILD_DATE }} + # BUILD_REVISION=${{ github.sha }} + # BUILD_VERSION=${{ github.event.release.tag_name }} + # load: false + # push: true + # secrets: | + # GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + # tags: | + # ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8 + # ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:${{ github.event.release.tag_name }} + # ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:latest - - name: Invoke Mirror docker image workflow (Main image) - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: mirror-docker-image.yml - inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8", "target-image": "docker.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8" }' - - name: Invoke Mirror docker image workflow (Main image) - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: mirror-docker-image.yml - inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8", "target-image": "docker.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:${{ github.event.release.tag_name }}" }' - - name: Invoke Mirror docker image workflow (Main image) - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: mirror-docker-image.yml - inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8", "target-image": "docker.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:latest" }' + # - name: Invoke Mirror docker image workflow (Worker image) + # uses: benc-uk/workflow-dispatch@v1 + # with: + # workflow: mirror-docker-image.yml + # inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8", "target-image": "docker.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8" }' + # - name: Invoke Mirror docker image workflow (Worker image) + # uses: benc-uk/workflow-dispatch@v1 + # with: + # workflow: mirror-docker-image.yml + # inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8", "target-image": "docker.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:${{ github.event.release.tag_name }}" }' + # - name: Invoke Mirror docker image workflow (Worker image) + # uses: benc-uk/workflow-dispatch@v1 + # with: + # workflow: mirror-docker-image.yml + # inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:v8", "target-image": "docker.io/oxsecurity/megalinter-worker-${{ matrix.flavor }}:latest" }' ############################################## diff --git a/.github/workflows/deploy-RELEASE-linters.yml b/.github/workflows/deploy-RELEASE-linters.yml index 4e072079ec8..fa7bfd6cb10 100644 --- a/.github/workflows/deploy-RELEASE-linters.yml +++ b/.github/workflows/deploy-RELEASE-linters.yml @@ -205,7 +205,6 @@ jobs: BUILD_DATE=${{ env.BUILD_DATE }} BUILD_REVISION=${{ github.sha }} BUILD_VERSION=${{ github.event.release.tag_name }} - --squash # Enable image squashing to produce a single-layer image load: false push: true secrets: | diff --git a/.github/workflows/deploy-RELEASE.yml b/.github/workflows/deploy-RELEASE.yml index 6a907daad57..d9a430c3292 100644 --- a/.github/workflows/deploy-RELEASE.yml +++ b/.github/workflows/deploy-RELEASE.yml @@ -94,7 +94,6 @@ jobs: BUILD_DATE=${{ env.BUILD_DATE }} BUILD_REVISION=${{ github.sha }} BUILD_VERSION=${{ github.event.release.tag_name }} - --squash # Enable image squashing to produce a single-layer image load: false push: true secrets: | @@ -120,42 +119,41 @@ jobs: workflow: mirror-docker-image.yml inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter:v8", "target-image": "docker.io/oxsecurity/megalinter:latest" }' - - name: Build Worker Image - uses: docker/build-push-action@v6 - with: - context: . - file: Dockerfile-release - platforms: linux/amd64 - build-args: | - MEGALINTER_BASE_IMAGE=docker.io/oxsecurity/megalinter-worker:beta - BUILD_DATE=${{ env.BUILD_DATE }} - BUILD_REVISION=${{ github.sha }} - BUILD_VERSION=${{ github.event.release.tag_name }} - --squash # Enable image squashing to produce a single-layer image - load: false - push: true - secrets: | - GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - tags: | - ghcr.io/oxsecurity/megalinter-worker:v8 - ghcr.io/oxsecurity/megalinter-worker:${{ github.event.release.tag_name }} - ghcr.io/oxsecurity/megalinter-worker:latest + # - name: Build Worker Image + # uses: docker/build-push-action@v6 + # with: + # context: . + # file: Dockerfile-release + # platforms: linux/amd64 + # build-args: | + # MEGALINTER_BASE_IMAGE=docker.io/oxsecurity/megalinter-worker:beta + # BUILD_DATE=${{ env.BUILD_DATE }} + # BUILD_REVISION=${{ github.sha }} + # BUILD_VERSION=${{ github.event.release.tag_name }} + # load: false + # push: true + # secrets: | + # GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + # tags: | + # ghcr.io/oxsecurity/megalinter-worker:v8 + # ghcr.io/oxsecurity/megalinter-worker:${{ github.event.release.tag_name }} + # ghcr.io/oxsecurity/megalinter-worker:latest - - name: Invoke Mirror docker image workflow (Worker image) - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: mirror-docker-image.yml - inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker:v8", "target-image": "docker.io/oxsecurity/megalinter-worker:v8" }' - - name: Invoke Mirror docker image workflow (Worker image) - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: mirror-docker-image.yml - inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker:v8", "target-image": "docker.io/oxsecurity/megalinter-worker:${{ github.event.release.tag_name }}" }' - - name: Invoke Mirror docker image workflow (Worker image) - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: mirror-docker-image.yml - inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker:v8", "target-image": "docker.io/oxsecurity/megalinter-worker:latest" }' + # - name: Invoke Mirror docker image workflow (Worker image) + # uses: benc-uk/workflow-dispatch@v1 + # with: + # workflow: mirror-docker-image.yml + # inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker:v8", "target-image": "docker.io/oxsecurity/megalinter-worker:v8" }' + # - name: Invoke Mirror docker image workflow (Worker image) + # uses: benc-uk/workflow-dispatch@v1 + # with: + # workflow: mirror-docker-image.yml + # inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker:v8", "target-image": "docker.io/oxsecurity/megalinter-worker:${{ github.event.release.tag_name }}" }' + # - name: Invoke Mirror docker image workflow (Worker image) + # uses: benc-uk/workflow-dispatch@v1 + # with: + # workflow: mirror-docker-image.yml + # inputs: '{ "source-image": "ghcr.io/oxsecurity/megalinter-worker:v8", "target-image": "docker.io/oxsecurity/megalinter-worker:latest" }' deploy_doc: runs-on: ubuntu-latest diff --git a/.github/workflows/gitpod.yml b/.github/workflows/gitpod.yml index 6b7d5eb678c..6eb41a28c42 100644 --- a/.github/workflows/gitpod.yml +++ b/.github/workflows/gitpod.yml @@ -41,6 +41,7 @@ jobs: - name: Run Gitpod tests uses: nick-invision/retry@v3 + continue-on-error: true # Temporary until uv install is fixed (TODO: fix ^^) with: max_attempts: 3 timeout_minutes: 10 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f70ba8bdef..d722fc4c500 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Also prune volumes before pulling and pushing to docker hub - Externalize mirroring from ghcr.io to docker hub in another workflow to avoid memory issues - Squash docker images to have less layers and size + - Comment jobs related to GitHub Worker images, as CodeTotal is not actively maintained + - Make gitpod workflow not blocking until uv install is fixed - mega-linter-runner