Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LibreTranslate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Riße, Matthias
LibreTranslate
Commits
db34db16
Commit
db34db16
authored
2 years ago
by
Felix Wotschofsky
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix Docker build failing due to username casing
parent
c217c653
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/publish-docker.yml
+7
-5
7 additions, 5 deletions
.github/workflows/publish-docker.yml
with
7 additions
and
5 deletions
.github/workflows/publish-docker.yml
+
7
−
5
View file @
db34db16
...
...
@@ -33,9 +33,11 @@ jobs:
username
:
${{ github.repository_owner }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Get Version
id
:
get_version
run
:
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
-
name
:
Get Variables
id
:
get-variables
run
:
|
echo ::set-output name=version::${GITHUB_REF#refs/tags/}
echo ::set-output name=gh-username-lower::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
-
name
:
Build and push Image
uses
:
docker/build-push-action@v2
...
...
@@ -43,9 +45,9 @@ jobs:
platforms
:
linux/amd64
tags
:
|
${{ secrets.DOCKERHUB_USERNAME }}/libretranslate:${{ env.TAG }},
ghcr.io/${{
github.repository_
ow
n
er }}/libretranslate:${{ env.TAG }}
ghcr.io/${{
steps.get-variables.outputs.gh-username-l
ower }}/libretranslate:${{ env.TAG }}
push
:
true
cache-from
:
type=gha
cache-to
:
type=gha,mode=max
env
:
TAG
:
${{ startsWith(github.ref, 'refs/tags/') && steps.get
_version
.outputs.
VERSION
|| 'latest' }}
TAG
:
${{ startsWith(github.ref, 'refs/tags/') && steps.get
-variables
.outputs.
version
|| 'latest' }}
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