33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
name: Build toolchain image
|
|
run-name: ${{ gitea.actor }} is build toolchain
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Builder:
|
|
runs-on: kickstarter
|
|
secrets:
|
|
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
env:
|
|
IMAGE_NAME: registry.r10x/toolchain
|
|
steps:
|
|
- run: dnf -y install dnf-plugins-core
|
|
- run: >
|
|
dnf5 config-manager addrepo --from-repofile
|
|
https://download.docker.com/linux/fedora/docker-ce.repo
|
|
- run: dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
- run: docker pull fedora:43
|
|
- run: dnf -y install git
|
|
- run: >
|
|
git config
|
|
--global url."https://${ACTIONS_RUNTIME_TOKEN}:x-oauth-basic@codex.r10x.net/".insteadOf
|
|
"${GITHUB_SERVER_URL}"
|
|
- run: git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${PWD}
|
|
- run: >
|
|
docker build
|
|
--progress=plain
|
|
--tag ${IMAGE_NAME}
|
|
--file ci/Dockerfile
|
|
.
|
|
- run: docker push ${IMAGE_NAME}
|