28
.gitea/workflows/build.yml
Normal file
28
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: build
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3 * * 3'
|
||||
|
||||
workflow_dispatch: {}
|
||||
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
#strategy:
|
||||
# matrix:
|
||||
# variant: [44, 45]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build
|
||||
run: docker build -t ${{ vars.OCI_REGISTRY }}/drath/dev-toolbx:${{ matrix.variant }} -f Containerfile .
|
||||
|
||||
- name: Push
|
||||
run: |
|
||||
echo "${{ secrets.OCI_PASSWD }}" | docker login ${{ vars.OCI_REGISTRY }} -u gitea --password-stdin
|
||||
docker push ${{ vars.OCI_REGISTRY }}/drath/dev-toolbx:${{ matrix.variant }}
|
||||
9
Containerfile
Normal file
9
Containerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM registry.fedoraproject.org/fedora-toolbox:44
|
||||
|
||||
RUN rpm --import https://dl.espressif.com/dl/eim/eim.asc && curl -fsSL https://dl.espressif.com/dl/eim/rpm/eim.repo -o /etc/yum.repos.d/espressif-eim.repo
|
||||
RUN dnf -y install gcc make cmake ninja libusb1-devel eim-cli python3-pip libicu76 eza && dnf clean all
|
||||
|
||||
LABEL org.opencontainers.image.title="dev-toolbx" \
|
||||
org.opencontainers.image.description="Custom toolbox image with EIM and some development tools preinstalled" \
|
||||
org.opencontainers.image.vendor="drath.cc" \
|
||||
org.opencontainers.image.source="https://git.drath.cc/drath/dev-toolbx"
|
||||
Reference in New Issue
Block a user