Add docker release action

This commit is contained in:
Roman Gershman 2022-02-25 18:45:12 +02:00
parent b8521828e3
commit a859cf2fc8
2 changed files with 40 additions and 0 deletions

36
.github/workflows/docker-release.yml vendored Normal file
View 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

View File

@ -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'