Compare commits

...

2 commits

Author SHA1 Message Date
6f930acb98
Moving back to Debian, closes #1
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-03-08 21:35:22 -08:00
7b122f2706
Adding CI files 2023-03-08 21:34:55 -08:00
3 changed files with 42 additions and 3 deletions

17
.woodpecker.yml Normal file
View file

@ -0,0 +1,17 @@
clone:
git:
image: plugins/git
depth: 1
pipeline:
build:
image: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- PUSH_TOKEN=$${PUSH_TOKEN}
- PUSH_USER=$${PUSH_USER}
secrets:
- PUSH_TOKEN
- PUSH_USER
commands:
- /bin/sh build.sh

View file

@ -1,8 +1,9 @@
FROM fedora:latest
FROM debian:bullseye-slim
RUN dnf install -y zsh git neovim tmux stow python3-pip \
RUN apt-get update \
&& apt-get install -y zsh git neovim tmux stow python3-pip \
&& pip3 install pynvim \
&& dnf clean all
&& apt-get clean
WORKDIR /root

21
build.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
CONTAINER_NAME=dockertools
CONTAINER_HOST=git.andr3w.net
CONTAINER_USER=amd
echo "### MARK LOGIN "
echo $PUSH_TOKEN | docker login -u=$PUSH_USER --password-stdin $CONTAINER_HOST
echo "### MAKE BUILDER"
docker buildx create --use --name builder
echo "### MARK BUILD AMD64"
docker buildx build --push \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME \
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:latest \
-t $CONTAINER_HOST/$CONTAINER_USER/$CONTAINER_NAME:$(date -I) \
.