mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
build docker image for static binary
This commit is contained in:
parent
2c591300a4
commit
806a1606de
27
.github/workflows/docker-build.yml
vendored
Normal file
27
.github/workflows/docker-build.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: docker-build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
environment: DOCKER_IMAGE
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login GitHub Registry
|
||||
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u snmsts --password-stdin
|
||||
- name: Build image
|
||||
env:
|
||||
IMAGE: ${{ secrets.IMAGE }}
|
||||
run: |
|
||||
echo building $(cat ./scripts/Docker/$IMAGE/Name) ...
|
||||
docker build -t docker.pkg.github.com/${{ github.repository }}/$(cat ./scripts/Docker/$IMAGE/Name) ./scripts/Docker/${IMAGE}
|
||||
- name: Push image to GitHub Registry
|
||||
env:
|
||||
IMAGE: ${{ secrets.IMAGE }}
|
||||
run: docker push docker.pkg.github.com/${{ github.repository }}/$(cat ./scripts/Docker/$IMAGE_DIR/Name)
|
||||
7
scripts/Docker/musl64/Dockerfile
Normal file
7
scripts/Docker/musl64/Dockerfile
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
FROM alpine:3.13
|
||||
run apk add --no-cache \
|
||||
alpine-sdk automake autoconf curl-dev bash linux-headers \
|
||||
curl-static nghttp2-static openssl-libs-static brotli-static zlib-static; \
|
||||
cd /tmp/roswell;./bootstrap;./configure --with-sbcl-bin-variant='-musl';make; make install; \
|
||||
ros install sbcl-bin/2.0.5; \
|
||||
rm -rf /tmp/roswell
|
||||
1
scripts/Docker/musl64/Name
Normal file
1
scripts/Docker/musl64/Name
Normal file
|
|
@ -0,0 +1 @@
|
|||
roswell-musl:64
|
||||
Loading…
Reference in a new issue