fork/static-web-server
git clone https://git.julia.blue/fork/static-web-server
1c4929d
allow-symlink
1name : release-docker-manual 2on : 3pull_request : 4types : 5- labeled 6paths : 7- docker/**/Dockerfile 8- scripts/ci/**/*.sh 9- .github/workflows/release.docker.manual.yml 10 11jobs : 12docker-image-debian : 13runs-on : ubuntu-22.04 14environment : docker-publish-manual 15if : contains(github.event.label.name, 'docker:publish:v2.') 16steps : 17- 18name : Checkout repository 19uses : actions/checkout@v4 20with : 21fetch-depth : 1 22- 23name : Set up QEMU 24uses : docker/setup-qemu-action@v3 25- 26name : Prepare Docker envs 27shell : bash 28run : | 29version=${{ github.event.label.name }} 30semver=${version#*docker:publish:v} 31echo "SEMVER=$semver" >> $GITHUB_ENV 32echo "SEMVER_MAJOR=${semver%.*.*}" >> $GITHUB_ENV 33echo "SEMVER_MINOR=${semver%.*}" >> $GITHUB_ENV 34- 35name : Docker meta debian 36id : meta_debian 37uses : docker/metadata-action@v5 38with : 39images : | 40joseluisq/static-web-server 41ghcr.io/static-web-server/static-web-server 42flavor : | 43latest=false 44tags : | 45type=raw,value=debian 46type=raw,value=${{ env.SEMVER }}-debian 47type=raw,value=${{ env.SEMVER_MAJOR }}-debian 48type=raw,value=${{ env.SEMVER_MINOR }}-debian 49- 50name : Set up Docker Buildx 51uses : docker/setup-buildx-action@v3 52- 53name : Login to DockerHub 54uses : docker/login-action@v3 55with : 56username : ${{ secrets.DOCKERHUB_USERNAME }} 57password : ${{ secrets.DOCKERHUB_TOKEN }} 58- 59name : Login to ghcr.io 60uses : docker/login-action@v3 61with : 62registry : ghcr.io 63username : ${{ github.actor }} 64password : ${{ secrets.GITHUB_TOKEN }} 65- 66name : Build and push (debian) 67uses : docker/build-push-action@v6 68with : 69push : true 70context : . 71platforms : linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x 72file : ./docker/debian/Dockerfile 73tags : ${{ steps.meta_debian.outputs.tags }} 74build-args : | 75 SERVER_VERSION=${{ env.SEMVER }}