Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kitsukey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kio!
Kitsukey
Commits
f6dc533e
Unverified
Commit
f6dc533e
authored
1 year ago
by
Marie
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: configure stable docker build
parent
1e8d26ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/docker.yml
+17
-9
17 additions, 9 deletions
.github/workflows/docker.yml
with
17 additions
and
9 deletions
.github/workflows/docker.yml
+
17
−
9
View file @
f6dc533e
...
...
@@ -5,10 +5,17 @@ on:
types
:
[
published
]
workflow_dispatch
:
env
:
REGISTRY
:
ghcr.io
jobs
:
push_to_registry
:
name
:
Push Docker image to
Docker Hub
name
:
Push Docker image to
GHCR
runs-on
:
ubuntu-latest
if
:
github.repository == 'transfem-org/Sharkey'
permissions
:
contents
:
read
packages
:
write
steps
:
-
name
:
Check out the repo
...
...
@@ -17,12 +24,12 @@ jobs:
id
:
buildx
uses
:
docker/setup-buildx-action@v3.0.0
with
:
platforms
:
linux/amd64
,linux/arm64
platforms
:
linux/amd64
-
name
:
Docker meta
id
:
meta
uses
:
docker/metadata-action@v5
with
:
images
:
misskey/miss
key
images
:
${{ env.REGISTRY }}/transfem-org/shar
key
tags
:
|
type=edge
type=ref,event=pr
...
...
@@ -30,12 +37,13 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
-
name
:
Log in to
Docker Hub
-
name
:
Log in to
GHCR
uses
:
docker/login-action@v3
with
:
username
:
${{ secrets.DOCKER_USERNAME }}
password
:
${{ secrets.DOCKER_PASSWORD }}
-
name
:
Build and Push to Docker Hub
registry
:
${{ env.REGISTRY }}
username
:
${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Build and Push to GHCR
uses
:
docker/build-push-action@v5
with
:
builder
:
${{ steps.buildx.outputs.name }}
...
...
@@ -43,7 +51,7 @@ jobs:
push
:
true
platforms
:
${{ steps.buildx.outputs.platforms }}
provenance
:
false
tags
:
${{
steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
tags
:
${{
env.REGISTRY }}/transfem-org/sharkey:stable
labels
:
stable
cache-from
:
type=gha
cache-to
:
type=gha,mode=max
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