From af5553e72d5f66234572502b386ca226dc2f87f4 Mon Sep 17 00:00:00 2001 From: Robin Scherrer Date: Wed, 23 Mar 2022 20:56:14 +0100 Subject: [PATCH 1/2] Prettify files --- Dockerfile | 6 +++--- deploy/cronjob.yaml | 2 +- renovate.json | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea73a4d..e3c23c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM alpine:3.15.2 RUN \ - apk add --no-cache ca-certificates bash curl && \ - curl https://dl.min.io/client/mc/release/linux-amd64/mc > /usr/bin/mc && \ - chmod +x /usr/bin/mc + apk add --no-cache ca-certificates bash curl && \ + curl https://dl.min.io/client/mc/release/linux-amd64/mc > /usr/bin/mc && \ + chmod +x /usr/bin/mc ADD mirrio.sh /mirrio.sh diff --git a/deploy/cronjob.yaml b/deploy/cronjob.yaml index 16c2a4e..f8da500 100644 --- a/deploy/cronjob.yaml +++ b/deploy/cronjob.yaml @@ -4,7 +4,7 @@ kind: CronJob metadata: name: mirrio spec: - schedule: '0 2 * * *' + schedule: "0 2 * * *" failedJobsHistoryLimit: 3 successfulJobsHistoryLimit: 1 concurrencyPolicy: Forbid diff --git a/renovate.json b/renovate.json index f45d8f1..4f39080 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,3 @@ { - "extends": [ - "config:base" - ] + "extends": ["config:base"] } From 3f2f6e46199678ee70d2bc7c9474cbbc1a08c4a3 Mon Sep 17 00:00:00 2001 From: Robin Scherrer Date: Wed, 23 Mar 2022 20:57:56 +0100 Subject: [PATCH 2/2] Add labels to docker image --- .github/workflows/push.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b02a044..bb04376 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -35,6 +35,12 @@ jobs: file: ./Dockerfile platforms: linux/amd64 push: true + labels: | + org.opencontainers.image.title=mirrIO + org.opencontainers.image.description=mirrIO + org.opencontainers.image.url=https://github.com/containeroo/mirrio + org.opencontainers.image.source=https://github.com/containeroo/mirrio + org.opencontainers.image.version=${{ steps.tag.outputs.version }} tags: | containeroo/mirrio:latest containeroo/mirrio:${{ steps.tag.outputs.version }}