46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: publish
|
|
|
|
on:
|
|
push:
|
|
branches: main
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: apt install docker
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.loadingm.xyz
|
|
username: "the10thwiz"
|
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
|
# -
|
|
# name: Set up QEMU
|
|
# uses: docker/setup-qemu-action@v3
|
|
# -
|
|
# name: Set up Docker Buildx
|
|
# uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
build-args: TOOLCHAIN=stable
|
|
tags: gitea.loadingm.xyz/the10thwiz/rustup:stable,gitea.loadingm.xyz/the10thwiz/rustup:latest
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
build-args: TOOLCHAIN=beta
|
|
tags: gitea.loadingm.xyz/the10thwiz/rustup:beta
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
build-args: TOOLCHAIN=nightly
|
|
tags: gitea.loadingm.xyz/the10thwiz/rustup:nightly
|