change from drone to woodpecker and update baseimage
All checks were successful
ci/woodpecker/tag/publish_docker Pipeline was successful

This commit is contained in:
Ivan Schaller 2022-05-20 22:17:12 +02:00
parent 6403c3bf39
commit 2a5ba29591
7 changed files with 117 additions and 114 deletions

View file

@ -1,110 +0,0 @@
################
# docker build #
################
kind: pipeline
type: docker
name: docker-build-amd64
platform:
os: linux
arch: amd64
trigger:
event:
- tag
# anchors
cr_secrets: &cr_secrets
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key
docker_build: &docker_build
image: plugins/docker
pull: if-not-exists
group: build
# build steps amd64
steps:
- name: 'build and publish docker image'
<<: *docker_build
settings:
repo: olofvndrhr/flox-dockerized
dockerfile: Dockerfile.amd64
auto_tag: true
auto_tag_suffix: linux-amd64
<<: *cr_secrets
---
kind: pipeline
type: docker
name: docker-build-arm64
platform:
os: linux
arch: arm64
trigger:
event:
- tag
# anchors
cr_secrets: &cr_secrets
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key
docker_build: &docker_build
image: plugins/docker
pull: if-not-exists
group: build
# build steps arm64
steps:
- name: 'build and publish docker image'
<<: *docker_build
settings:
repo: olofvndrhr/flox-dockerized
dockerfile: Dockerfile.arm64
auto_tag: true
auto_tag_suffix: linux-arm64
<<: *cr_secrets
---
kind: pipeline
type: docker
name: docker-publish-manifest
platform:
os: linux
arch: amd64
trigger:
event:
- tag
# anchors
cr_secrets: &cr_secrets
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key
# build steps
steps:
- name: 'publish manifest'
image: plugins/manifest
settings:
spec: manifest.tmpl
auto_tag: true
ignore_missing: true
<<: *cr_secrets
depends_on:
- docker-build-amd64
- docker-build-arm64

3
.gitignore vendored
View file

@ -1 +1,2 @@
test/ test/
.idea/

View file

@ -0,0 +1,45 @@
#######################
# build docker images #
#######################
# branch: master
# event: pull_request
clone:
git:
when:
branch: master
event: pull_request
image: woodpeckerci/plugin-git
pipeline:
# build docker image for amd64 - x86
dryrun-build-amd64:
when:
branch: master
event: pull_request
image: olofvndrhr/flox-dockerized
pull: true
settings:
dry_run: true
repo: olofvndrhr/manga-dlp
platforms: linux/amd64
dockerfile: Dockerfile.amd64
auto_tag: true
auto_tag_suffix: linux-amd64
# build docker image for arm64
dryrun-build-arm64:
when:
branch: master
event: pull_request
image: olofvndrhr/flox-dockerized
pull: true
settings:
dry_run: true
repo: olofvndrhr/manga-dlp
platforms: linux/arm64
dockerfile: Dockerfile.arm64
auto_tag: true
auto_tag_suffix: linux-arm64

View file

@ -0,0 +1,67 @@
###################################
# build and publish docker images #
###################################
# branch: master
# event: tag
clone:
git:
when:
#branch: master
event: tag
image: woodpeckerci/plugin-git
pipeline:
# build and publish docker image for amd64 - x86
build-amd64:
when:
#branch: master
event: tag
image: woodpeckerci/plugin-docker-buildx
pull: true
settings:
repo: olofvndrhr/flox-dockerized
platforms: linux/amd64
dockerfile: Dockerfile.amd64
auto_tag: true
auto_tag_suffix: linux-amd64
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key
# build and publish docker image for arm64
build-arm64:
when:
#branch: master
event: tag
image: woodpeckerci/plugin-docker-buildx
pull: true
settings:
repo: olofvndrhr/flox-dockerized
platforms: linux/arm64
dockerfile: Dockerfile.arm64
auto_tag: true
auto_tag_suffix: linux-arm64
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key
# publish docker manifest for automatic multi arch pulls
publish-manifest:
when:
#branch: master
event: tag
image: plugins/manifest
pull: true
settings:
spec: manifest.tmpl
auto_tag: true
ignore_missing: true
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key

View file

@ -10,7 +10,7 @@ RUN \
########################################### ###########################################
FROM cr.44net.ch/baseimages/debian-s6:1.3.1 FROM cr.44net.ch/baseimages/debian-s6:1.3.5
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE

View file

@ -10,7 +10,7 @@ RUN \
########################################### ###########################################
FROM cr.44net.ch/baseimages/debian-s6:1.3.1 FROM cr.44net.ch/baseimages/debian-s6:1.3.5
# set version label # set version label
ARG BUILD_DATE ARG BUILD_DATE

View file

@ -1,6 +1,6 @@
# flox-dockerized # flox-dockerized
[![Build Status](https://drone.44net.ch/api/badges/olofvndrhr/flox-dockerized/status.svg)](https://drone.44net.ch/olofvndrhr/flox-dockerized) [![status-badge](https://ci.44net.ch/api/badges/olofvndrhr/flox-dockerized/status.svg)](https://ci.44net.ch/olofvndrhr/flox-dockerized)
### This is a docker container for the flox watchlist. Be sure to check out the original project: https://github.com/devfake/flox ### This is a docker container for the flox watchlist. Be sure to check out the original project: https://github.com/devfake/flox