33 lines
1016 B
YAML
33 lines
1016 B
YAML
name: Build Debian
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
debian-trixie:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://gitea.starryskymeow.cn/mirrors/checkout@v6
|
|
|
|
- name: Set up buildx
|
|
uses: https://gitea.starryskymeow.cn/mirrors/docker-setup-buildx-action@v4
|
|
with:
|
|
driver: docker-container
|
|
driver-opts: |
|
|
env.HTTP_PROXY=socks5h://${{ secrets.PROXY }}
|
|
env.HTTPS_PROXY=socks5h://${{ secrets.PROXY }}
|
|
env.NO_PROXY=localhost,127.0.0.1,::1,10.0.0.0/8
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: https://gitea.starryskymeow.cn/mirrors/docker-login-action@v4
|
|
with:
|
|
username: ${{ vars.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Build and push
|
|
run: |
|
|
docker build --push \
|
|
--platform=linux/amd64,linux/arm64 \
|
|
-f debian/Dockerfile \
|
|
-t ${{ vars.DOCKER_USERNAME }}/debian:trixie \
|
|
. |