diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml new file mode 100644 index 0000000..4ba924b --- /dev/null +++ b/.github/workflows/docker-release.yml @@ -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 \ No newline at end of file diff --git a/tools/docker/Dockerfile.alpine-prod b/tools/docker/Dockerfile.alpine-prod index d50ed9e..3d54d60 100644 --- a/tools/docker/Dockerfile.alpine-prod +++ b/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'