mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
Add docker release action
This commit is contained in:
parent
b8521828e3
commit
a859cf2fc8
2 changed files with 40 additions and 0 deletions
36
.github/workflows/docker-release.yml
vendored
Normal file
36
.github/workflows/docker-release.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: docker release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# ===============================================================
|
||||
# Building Dev Images
|
||||
# ===============================================================
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build alpine-prod
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: |
|
||||
ghcr.io/${{ github.actor }}/dragonfly-alpine:latest
|
||||
file: tools/docker/Dockerfile.alpine-prod
|
|
@ -12,6 +12,10 @@ WORKDIR build-opt
|
|||
RUN ninja dragonfly
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
LABEL org.opencontainers.image.title Dragonfly
|
||||
LABEL org.opencontainers.image.source https://github.com/romange/dragonfly
|
||||
|
||||
RUN addgroup -S -g 1000 dfly && adduser -S -G dfly -u 999 dfly
|
||||
RUN apk --no-cache add libgcc libstdc++ libunwind boost1.77-fiber \
|
||||
'su-exec>=0.2'
|
||||
|
|
Loading…
Reference in a new issue