-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comment jobs related to GitHub Worker images, as CodeTotal is not act…
…ively maintained + Make gitpod job failure not blocking (#4242) * Comment jobs related to GitHub Worker images, as CodeTotal is not actively maintained * Make gitpod workflow not blocking until uv install is fixed
- Loading branch information
Showing
12 changed files
with
171 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,17 +127,17 @@ jobs: | |
tags: | | ||
type=raw,value= | ||
- name: Docker Metadata action (Worker Docker Hub) | ||
uses: docker/[email protected] | ||
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/[email protected] | ||
# 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 # | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,14 +116,14 @@ jobs: | |
tags: | | ||
type=raw,value=beta | ||
- name: Docker Metadata action (Worker) | ||
uses: docker/[email protected] | ||
id: meta-w | ||
with: | ||
images: | | ||
name=ghcr.io/${{ github.repository }}-worker | ||
tags: | | ||
type=raw,value=beta | ||
# - name: Docker Metadata action (Worker) | ||
# uses: docker/[email protected] | ||
# id: meta-w | ||
# with: | ||
# images: | | ||
# name=ghcr.io/${{ github.repository }}-worker | ||
# tags: | | ||
# type=raw,value=beta | ||
|
||
- name: Docker Metadata action (Worker Server) | ||
uses: docker/[email protected] | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.