Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/velero-microsoft-azure-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: velero-microsoft-azure-plugin

on:
push:
paths:
- '.github/workflows/velero-microsoft-azure-plugin.yml'
- 'build/velero-microsoft-azure-plugin/**'
- '!build/velero-microsoft-azure-plugin/*.md'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Prepare
id: prep
run: |
BASE_DIR=build/velero-microsoft-azure-plugin
VERSION=$(cat ${BASE_DIR}/.version)
echo ::set-output name=version::${VERSION}
echo ::set-output name=base_dir::${BASE_DIR}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
install: true
version: latest

- name: Login to DockerHubs
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and Push
if: github.ref != 'refs/heads/main'
uses: docker/build-push-action@v2
with:
build-args: VERSION=${{ steps.prep.outputs.version }}
context: ${{ steps.prep.outputs.base_dir }}/
file: ${{ steps.prep.outputs.base_dir }}/Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: |
raspbernetes/velero-microsoft-azure-plugin:${{ github.sha }}

- name: Build and Push
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v2
with:
build-args: VERSION=${{ steps.prep.outputs.version }}
context: ${{ steps.prep.outputs.base_dir }}/
file: ${{ steps.prep.outputs.base_dir }}/Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: |
raspbernetes/velero-microsoft-azure-plugin:latest
raspbernetes/velero-microsoft-azure-plugin:${{ steps.prep.outputs.version }}
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ This repository is only used to store the unofficial docker images that will be

## Available Images

| Name | Architecture | Upstream Issue |
| -------------------------------------------------------------------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [apcupsd-exporter](https://hub.docker.com/r/raspbernetes/apcupsd-exporter) | `arm/arm64/amd64` | N/A |
| [botkube](https://hub.docker.com/r/raspbernetes/botkube) | `arm/arm64/amd64` | N/A |
| [cluster-autoscaler](https://hub.docker.com/r/raspbernetes/cluster-autoscaler) | `arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/kubernetes/autoscaler/3392)](https://github.com/banzaicloud/pipeline/issues/3392) |
| [descheduler](https://hub.docker.com/r/raspbernetes/descheduler) | `arm/arm64/amd64` | N/A |
| [dex-k8s-authenticator](https://hub.docker.com/r/raspbernetes/dex-k8s-authenticator) | `arm/arm64/amd64` | N/A |
| [flagger](https://hub.docker.com/r/raspbernetes/flagger) | `arm64` | N/A |
| [flux](https://hub.docker.com/r/raspbernetes/flux) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/fluxcd/flux/1761)](https://github.com/fluxcd/flux/issues/1761) |
| [helm-operator](https://hub.docker.com/r/raspbernetes/helm-operator) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/fluxcd/helm-operator/147)](https://github.com/fluxcd/helm-operator/issues/147) |
| [kube-bench](https://hub.docker.com/r/raspbernetes/kube-bench) | `arm/arm64/amd64` | N/A |
| [kubeyaml](https://hub.docker.com/r/raspbernetes/kubeyaml) | `arm/arm64/amd64` | N/A |
| [kured](https://hub.docker.com/r/raspbernetes/kured) | `arm/arm64/amd64` | N/A |
| [node-feature-discovery](https://hub.docker.com/r/raspbernetes/node-feature-discovery) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/kubernetes-sigs/node-feature-discovery/426)](https://github.com/kubernetes-sigs/node-feature-discovery/issues/426) |
| [sops](https://hub.docker.com/r/raspbernetes/sops) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/mozilla/sops/595)](https://github.com/mozilla/sops/issues/595) |
| [thanos](https://hub.docker.com/r/raspbernetes/thanos) | `arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/thanos-io/thanos/1851)](https://github.com/thanos-io/thanos/issues/1851) |
| [traefik-forward-auth](https://hub.docker.com/r/raspbernetes/traefik-forward-auth) | `arm64/amd64` | N/A |
| [velero-aws-plugin](https://hub.docker.com/r/raspbernetes/velero-aws-plugin) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/vmware-tanzu/velero-plugin-for-aws/18)](https://github.com/vmware-tanzu/velero-plugin-for-aws/issues/18) |
| [velero-csi-plugin](https://hub.docker.com/r/raspbernetes/velero-csi-plugin) | `arm/arm64/amd64` | N/A |
| [velero-gcp-plugin](https://hub.docker.com/r/raspbernetes/velero-gcp-plugin) | `arm/arm64/amd64` | N/A |

| Name | Architecture | Upstream Issue |
| ---------------------------------------------------------------------------------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [apcupsd-exporter](https://hub.docker.com/r/raspbernetes/apcupsd-exporter) | `arm/arm64/amd64` | N/A |
| [botkube](https://hub.docker.com/r/raspbernetes/botkube) | `arm/arm64/amd64` | N/A |
| [cluster-autoscaler](https://hub.docker.com/r/raspbernetes/cluster-autoscaler) | `arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/kubernetes/autoscaler/3392)](https://github.com/banzaicloud/pipeline/issues/3392) |
| [descheduler](https://hub.docker.com/r/raspbernetes/descheduler) | `arm/arm64/amd64` | N/A |
| [dex-k8s-authenticator](https://hub.docker.com/r/raspbernetes/dex-k8s-authenticator) | `arm/arm64/amd64` | N/A |
| [flagger](https://hub.docker.com/r/raspbernetes/flagger) | `arm64` | N/A |
| [flux](https://hub.docker.com/r/raspbernetes/flux) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/fluxcd/flux/1761)](https://github.com/fluxcd/flux/issues/1761) |
| [helm-operator](https://hub.docker.com/r/raspbernetes/helm-operator) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/fluxcd/helm-operator/147)](https://github.com/fluxcd/helm-operator/issues/147) |
| [kube-bench](https://hub.docker.com/r/raspbernetes/kube-bench) | `arm/arm64/amd64` | N/A |
| [kubeyaml](https://hub.docker.com/r/raspbernetes/kubeyaml) | `arm/arm64/amd64` | N/A |
| [kured](https://hub.docker.com/r/raspbernetes/kured) | `arm/arm64/amd64` | N/A |
| [node-feature-discovery](https://hub.docker.com/r/raspbernetes/node-feature-discovery) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/kubernetes-sigs/node-feature-discovery/426)](https://github.com/kubernetes-sigs/node-feature-discovery/issues/426) |
| [sops](https://hub.docker.com/r/raspbernetes/sops) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/mozilla/sops/595)](https://github.com/mozilla/sops/issues/595) |
| [thanos](https://hub.docker.com/r/raspbernetes/thanos) | `arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/thanos-io/thanos/1851)](https://github.com/thanos-io/thanos/issues/1851) |
| [traefik-forward-auth](https://hub.docker.com/r/raspbernetes/traefik-forward-auth) | `arm64/amd64` | N/A |
| [velero-aws-plugin](https://hub.docker.com/r/raspbernetes/velero-aws-plugin) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/vmware-tanzu/velero-plugin-for-aws/18)](https://github.com/vmware-tanzu/velero-plugin-for-aws/issues/18) |
| [velero-csi-plugin](https://hub.docker.com/r/raspbernetes/velero-csi-plugin) | `arm/arm64/amd64` | N/A |
| [velero-gcp-plugin](https://hub.docker.com/r/raspbernetes/velero-gcp-plugin) | `arm/arm64/amd64` | N/A |
| [velero-microsoft-azure-plugin](https://hub.docker.com/r/raspbernetes/velero-microsoft-azure-plugin) | `arm/arm64/amd64` | N/A
<!--
| csi-external-attacher | raspbernetes/csi-external-attacher)](https://hub.docker.com/r/raspbernetes/csi-external-attacher) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/kubernetes-csi/external-attacher/224)](https://github.com/kubernetes-csi/external-attacher/pull/224) |
| csi-external-provisioner | raspbernetes/csi-external-provisioner)](https://hub.docker.com/r/raspbernetes/csi-external-provisioner) | `arm/arm64/amd64` | [![GitHub issue status](https://img.shields.io/github/issues/detail/state/kubernetes-csi/external-provisioner/381)](https://github.com/kubernetes-csi/external-provisioner/issues/381) |
Expand Down
1 change: 1 addition & 0 deletions build/velero-microsoft-azure-plugin/.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1.4.0
29 changes: 29 additions & 0 deletions build/velero-microsoft-azure-plugin/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM golang:1.15-alpine as build

ARG VERSION=v1.0.0
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT=""

ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=${TARGETOS} \
GOARCH=${TARGETARCH} \
GOARM=${TARGETVARIANT}

RUN apk add --no-cache git

WORKDIR /go/src/github.com/vmware-tanzu/velero-plugin-for-microsoft-azure

RUN git clone --depth 1 -b ${VERSION} https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure.git . && \
go build -o /go/bin/velero-plugin-for-microsoft-azure ./velero-plugin-for-microsoft-azure

FROM alpine:3.12

WORKDIR /plugins

RUN apk add --no-cache bash ca-certificates

COPY --from=build /go/bin/velero-plugin-for-microsoft-azure ./velero-plugin-for-microsoft-azure

ENTRYPOINT ["/bin/bash", "-c", "cp -r /plugins/* /target/."]
3 changes: 3 additions & 0 deletions build/velero-microsoft-azure-plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
![velero-microsoft-azure-plugin](https://github.com/raspbernetes/multi-arch-images/workflows/velero-microsoft-azure-plugin/badge.svg)

# Velero Microsoft Azure Plugin
4 changes: 4 additions & 0 deletions build/velero-microsoft-azure-plugin/latest-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

version=$(curl -sL "https://api.github.com/repos/vmware-tanzu/velero-plugin-for-microsoft-azure/releases/latest" | jq -r ".tag_name")
printf "%s" "${version}"