Compare commits
6 Commits
6b9faa4506
...
master
Author | SHA1 | Date | |
---|---|---|---|
60eab030af | |||
aae6ef8be3 | |||
d173488fef | |||
06d7e7e62e | |||
5e5c64c922 | |||
2097ffef8b |
36
.drone.yml
Normal file
36
.drone.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
steps:
|
||||||
|
- name: kaniko
|
||||||
|
image: banzaicloud/drone-kaniko
|
||||||
|
settings:
|
||||||
|
registry: registry.kmlabz.com
|
||||||
|
repo: birbnetes/${DRONE_REPO_NAME}
|
||||||
|
username:
|
||||||
|
from_secret: DOCKER_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: DOCKER_PASSWORD
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_BUILD_NUMBER}
|
||||||
|
|
||||||
|
- name: dockerhub
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: birbnetes/${DRONE_REPO_NAME}
|
||||||
|
username:
|
||||||
|
from_secret: DOCKERHUB_USER
|
||||||
|
password:
|
||||||
|
from_secret: DOCKERHUB_PASSWORD
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_BUILD_NUMBER}
|
||||||
|
|
||||||
|
- name: ms-teams
|
||||||
|
image: kuperiu/drone-teams
|
||||||
|
settings:
|
||||||
|
webhook:
|
||||||
|
from_secret: TEAMS_WEBHOOK
|
||||||
|
when:
|
||||||
|
status: [ failure ]
|
@ -10,7 +10,7 @@ RUN mkdir /uboot_build/ && \
|
|||||||
|
|
||||||
WORKDIR /uboot_build/
|
WORKDIR /uboot_build/
|
||||||
|
|
||||||
ENV UBOOT_VERSION=2020.01
|
ENV UBOOT_VERSION=2021.07
|
||||||
|
|
||||||
RUN wget http://ftp.denx.de/pub/u-boot/u-boot-${UBOOT_VERSION}.tar.bz2 && \
|
RUN wget http://ftp.denx.de/pub/u-boot/u-boot-${UBOOT_VERSION}.tar.bz2 && \
|
||||||
tar -xjf u-boot-${UBOOT_VERSION}.tar.bz2
|
tar -xjf u-boot-${UBOOT_VERSION}.tar.bz2
|
||||||
@ -54,10 +54,10 @@ ADD ./resources/uboot.c /uboot.c
|
|||||||
RUN arm-linux-gnueabi-gcc -Wall -static -static-libgcc -o /uboot_tool /uboot.c
|
RUN arm-linux-gnueabi-gcc -Wall -static -static-libgcc -o /uboot_tool /uboot.c
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.11
|
FROM alpine:3.14
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add automake build-base git autoconf confuse-dev linux-headers \
|
apk add automake build-base git autoconf confuse-dev linux-headers sudo \
|
||||||
findutils mtools e2fsprogs-extra alpine-sdk dosfstools uboot-tools && \
|
findutils mtools e2fsprogs-extra alpine-sdk dosfstools uboot-tools && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ RUN git clone https://github.com/pengutronix/genimage.git /tmp/genimage && \
|
|||||||
ADD ./resources/genext2fs /genext2fs
|
ADD ./resources/genext2fs /genext2fs
|
||||||
|
|
||||||
RUN cd /genext2fs && \
|
RUN cd /genext2fs && \
|
||||||
abuild-keygen -a -i -q && \
|
echo | abuild-keygen -a -i -q && \
|
||||||
abuild -F -P /tmp/pkg && \
|
abuild -F -P /tmp/pkg && \
|
||||||
apk add /tmp/pkg/x86_64/genext2fs-1*.apk && \
|
apk add /tmp/pkg/x86_64/genext2fs-1*.apk && \
|
||||||
rm -rf /tmp/pkg/
|
rm -rf /tmp/pkg/
|
||||||
|
@ -4,7 +4,7 @@ set -e
|
|||||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
# User config
|
# User config
|
||||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||||
: ${ALPINE_BRANCH:="v3.11"}
|
: ${ALPINE_BRANCH:="v3.14"}
|
||||||
: ${ALPINE_MIRROR:="http://dl-cdn.alpinelinux.org/alpine"}
|
: ${ALPINE_MIRROR:="http://dl-cdn.alpinelinux.org/alpine"}
|
||||||
|
|
||||||
: ${DEFAULT_TIMEZONE:="Etc/UTC"}
|
: ${DEFAULT_TIMEZONE:="Etc/UTC"}
|
||||||
|
Loading…
Reference in New Issue
Block a user