Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
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
Dima Krasner
Sharkey
Commits
614238eb
Commit
614238eb
authored
1 year ago
by
Marie
Browse files
Options
Downloads
Patches
Plain Diff
Add .forgejo/workflows/docker-develop.yml
parent
de70b58b
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
.forgejo/workflows/docker-develop.yml
+58
-0
58 additions, 0 deletions
.forgejo/workflows/docker-develop.yml
with
58 additions
and
0 deletions
.forgejo/workflows/docker-develop.yml
0 → 100644
+
58
−
0
View file @
614238eb
name
:
Publish Docker image (develop)
on
:
push
:
branches
:
-
develop
paths
:
-
packages/**
-
locales/**
workflow_dispatch
:
env
:
REGISTRY
:
git.joinsharkey.org
jobs
:
push_to_registry
:
name
:
Push Docker image to GHCR
runs-on
:
docker
steps
:
-
name
:
install packages
run
:
apt-get update && apt-get install -y wget git curl
-
uses
:
https://code.forgejo.org/actions/setup-node@v3
with
:
node-version
:
20
-
name
:
Install docker
run
:
|
echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get -qq update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y -t bullseye-backports docker.io
-
name
:
Check out the repo
uses
:
actions/checkout@v4.1.1
-
name
:
Set up Docker Buildx
id
:
buildx
uses
:
https://github.com/docker/setup-buildx-action@v3.0.0
with
:
platforms
:
linux/amd64,linux/arm64
-
name
:
Docker meta
id
:
meta
uses
:
https://github.com/docker/metadata-action@v5
with
:
images
:
${{ env.REGISTRY }}/sharkey/sharkey
-
name
:
Log in to GHCR
uses
:
https://github.com/docker/login-action@v3
with
:
registry
:
${{ env.REGISTRY }}
username
:
Marie
password
:
${{ secrets.TOKEN }}
-
name
:
Build and Push to GHCR
id
:
build
uses
:
https://github.com/docker/build-push-action@v5
with
:
builder
:
${{ steps.buildx.outputs.name }}
context
:
.
push
:
true
platforms
:
${{ steps.buildx.outputs.platforms }}
provenance
:
false
tags
:
${{ env.REGISTRY }}/sharkey/sharkey:develop
labels
:
develop
build-args
:
NODE_ENV=development
\ No newline at end of file
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