Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
128fcc7f
Unverified
Commit
128fcc7f
authored
1 year ago
by
Ariya Hidayat
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
CI on container build: parametrize the Docker Hub organization (#30500)
parent
346a4312
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/uberjar.yml
+8
-8
8 additions, 8 deletions
.github/workflows/uberjar.yml
with
8 additions
and
8 deletions
.github/workflows/uberjar.yml
+
8
−
8
View file @
128fcc7f
...
...
@@ -129,15 +129,15 @@ jobs:
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Retag and push images if master (ee)
if
:
${{ (github.ref_name == 'master') && matrix.edition == 'ee' }}
run
:
docker tag localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-ee
metabase
/metabase-enterprise-head:latest && docker push
metabase
/metabase-enterprise-head:latest
run
:
docker tag localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-ee
${{ github.repository_owner }}
/metabase-enterprise-head:latest && docker push
${{ github.repository_owner }}
/metabase-enterprise-head:latest
-
name
:
Retag and push images if master (oss)
if
:
${{ (github.ref_name == 'master') && matrix.edition == 'oss' }}
run
:
docker tag localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-oss
metabase
/metabase-head:latest && docker push
metabase
/metabase-head:latest
run
:
docker tag localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-oss
${{ github.repository_owner }}
/metabase-head:latest && docker push
${{ github.repository_owner }}
/metabase-head:latest
-
name
:
Retag and push images if dev branch
if
:
${{ !(startsWith(github.ref_name,'master') || startsWith(github.ref_name,'backport')) && matrix.edition == 'ee' }}
run
:
docker tag localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-ee
metabase
/metabase-dev:${{ steps.extract_branch.outputs.branch }} && docker push
metabase
/metabase-dev:${{ steps.extract_branch.outputs.branch }}
run
:
docker tag localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-ee
${{ github.repository_owner }}
/metabase-dev:${{ steps.extract_branch.outputs.branch }} && docker push
${{ github.repository_owner }}
/metabase-dev:${{ steps.extract_branch.outputs.branch }}
-
name
:
Run Trivy vulnerability scanner if master (ee)
if
:
${{ (github.ref_name == 'master') && matrix.edition == 'ee' }}
...
...
@@ -145,7 +145,7 @@ jobs:
env
:
TRIVY_OFFLINE_SCAN
:
true
with
:
image-ref
:
docker.io/
metabase
/metabase-enterprise-head:latest
image-ref
:
docker.io/
${{ github.repository_owner }}
/metabase-enterprise-head:latest
format
:
sarif
output
:
trivy-results.sarif
...
...
@@ -155,7 +155,7 @@ jobs:
env
:
TRIVY_OFFLINE_SCAN
:
true
with
:
image-ref
:
docker.io/
metabase
/metabase-head:latest
image-ref
:
docker.io/
${{ github.repository_owner }}
/metabase-head:latest
format
:
sarif
output
:
trivy-results.sarif
...
...
@@ -165,7 +165,7 @@ jobs:
env
:
TRIVY_OFFLINE_SCAN
:
true
with
:
image-ref
:
docker.io/
metabase
/metabase-dev:${{ steps.extract_branch.outputs.branch }}
image-ref
:
docker.io/
${{ github.repository_owner }}
/metabase-dev:${{ steps.extract_branch.outputs.branch }}
format
:
sarif
output
:
trivy-results.sarif
...
...
@@ -259,7 +259,7 @@ jobs:
run
:
regctl registry set --tls disabled localhost:5000
-
name
:
Retag and push ubuntu-based images if master (ee)
if
:
${{ matrix.edition == 'ee' }}
run
:
regctl image copy localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-ee-ubuntu
metabase
/metabase-enterprise-head:latest-ubuntu
run
:
regctl image copy localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-ee-ubuntu
${{ github.repository_owner }}
/metabase-enterprise-head:latest-ubuntu
-
name
:
Retag and push ubuntu-based images if master (oss)
if
:
${{ matrix.edition == 'oss' }}
run
:
regctl image copy localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-oss-ubuntu
metabase
/metabase-head:latest-ubuntu
run
:
regctl image copy localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-oss-ubuntu
${{ github.repository_owner }}
/metabase-head:latest-ubuntu
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment