Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
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
savoirfairelinux
opendht
Commits
b2f4a2ea
Commit
b2f4a2ea
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
ci/github: add experimental docker build action
parent
53b5c0ec
Branches
cmake
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/release-package.yml
+64
-0
64 additions, 0 deletions
.github/workflows/release-package.yml
with
64 additions
and
0 deletions
.github/workflows/release-package.yml
0 → 100644
+
64
−
0
View file @
b2f4a2ea
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name
:
Create and publish Docker images
on
:
push
#release
:
# types: [published]
env
:
REGISTRY
:
ghcr.io
IMAGE_NAME_DEPS
:
${{ github.repository }}/opendht
IMAGE_NAME
:
${{ github.repository }}/opendht-deps
IMAGE_NAME_DEPS_LLVM
:
${{ github.repository }}/opendht-llvm
IMAGE_NAME_LLVM
:
${{ github.repository }}/opendht-deps-llvm
jobs
:
build-and-push-image
:
runs-on
:
ubuntu-latest
permissions
:
contents
:
read
packages
:
write
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
-
name
:
Log in to the Container registry
uses
:
docker/login-action@v2
with
:
registry
:
${{ env.REGISTRY }}
username
:
${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Extract metadata (tags, labels) for Docker
id
:
meta
uses
:
docker/metadata-action@v4
with
:
images
:
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_DEPS }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_DEPS_LLVM }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LLVM }}
-
name
:
Build and push Docker image for dependencies
uses
:
docker/build-push-action@v3
with
:
context
:
.
file
:
docker/DockerfileDeps
#push: true
tags
:
${{ steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
-
name
:
Build and push Docker image
uses
:
docker/build-push-action@v3
with
:
context
:
.
file
:
docker/Dockerfile
#push: true
tags
:
${{ steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
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