25 lines
1.0 KiB
YAML
25 lines
1.0 KiB
YAML
name: Build toolchain image
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
Builder:
|
|
runs-on: kickstarter
|
|
secrets:
|
|
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
env:
|
|
IMAGE_NAME: registry.r10x/toolchain
|
|
steps:
|
|
# - run: dnf -y update
|
|
- run: dnf -y install dnf-plugins-core
|
|
# - run: dnf -y group install standard core hardware-support development-libs development-tools
|
|
- 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: 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} .
|
|
- run: docker push ${IMAGE_NAME}
|