mirror of
https://github.com/static-web-server/static-web-server.git
synced 2026-01-25 05:06:33 +00:00
refactor: prefer dynamically-linked binaries for Debian Docker images (#588)
* refactor: prefer dynamically-linked binaries for debian docker images * fix: disable dynamically-linked binary execution tests As dynamically-linked binaries can not be executed for obvious reasons * docs: improve os/arch section
This commit is contained in:
18
.github/workflows/release.docker.devel.yml
vendored
18
.github/workflows/release.docker.devel.yml
vendored
@@ -1,6 +1,15 @@
|
||||
name: release-docker-devel
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- .github/workflows/release.docker.devel.yml
|
||||
- .cargo/config.toml
|
||||
- Cargo.lock
|
||||
- Cargo.toml
|
||||
- src/**
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
@@ -36,6 +45,10 @@ jobs:
|
||||
arch: linux/amd64
|
||||
rust: stable
|
||||
target: x86_64-unknown-linux-musl
|
||||
- build: linux-gnu
|
||||
arch: linux/amd64
|
||||
rust: stable
|
||||
target: x86_64-unknown-linux-gnu
|
||||
|
||||
outputs:
|
||||
target: ${{ steps.target.outputs.target }}
|
||||
@@ -90,7 +103,7 @@ jobs:
|
||||
docker-image:
|
||||
needs: ['build-release']
|
||||
runs-on: ubuntu-22.04
|
||||
permissions:
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
strategy:
|
||||
@@ -118,7 +131,8 @@ jobs:
|
||||
path: ${{ env.TARGET_DIR }}/${{ matrix.target }}/release
|
||||
key: cache-${{ github.sha }}-${{ matrix.target }}
|
||||
- name: Copy binary
|
||||
run: cp ${{ env.TARGET_DIR }}/${{ matrix.target }}/release/static-web-server ./docker/devel/
|
||||
run: |
|
||||
cp ${{ env.TARGET_DIR }}/${{ matrix.target }}/release/static-web-server ./docker/devel/
|
||||
|
||||
- name: Login to ghcr.io
|
||||
uses: docker/login-action@v3
|
||||
|
||||
Reference in New Issue
Block a user