Skip to content

Commit a948f98

Browse files
committed
feat: automatically build amd64 and arm64 docker images on new tags
1 parent b795767 commit a948f98

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

.github/workflows/tag-create.yml

+30-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,39 @@ on:
66
- '*'
77

88
jobs:
9-
repo:
9+
docker_release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Docker meta
15+
id: meta
16+
uses: docker/metadata-action@v5
1317
with:
14-
ref: 'main'
18+
images: |
19+
ryaneorth/scheduled-volume-snapshotter
20+
tags: |
21+
type=semver,pattern={{version}}
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v3
26+
- name: Login to Docker Hub
27+
uses: docker/login-action@v3
28+
with:
29+
username: ${{ secrets.DOCKERHUB_USERNAME }}
30+
password: ${{ secrets.DOCKERHUB_TOKEN }}
31+
- name: Build and push
32+
uses: docker/build-push-action@v5
33+
with:
34+
context: .
35+
platforms: linux/amd64,linux/arm64
36+
push: true
37+
tags: ${{ steps.meta.outputs.tags }}
38+
helm_release:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
1542
- name: Generate Index
1643
run: |
1744
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ You will need to have the `VolumeSnapshot` custom resource definition installed
1010

1111
The Scheduled Volume Snapshotter works with `v1alpha1` (Kubernetes 1.12 - 1.16), `v1beta1` (Kubernetes 1.17 - 1.19), and `v1` (Kubernetes >= 1.20) versions of the `VolumeSnapshot` custom resource.
1212

13+
As of version `v0.16.0`, Docker images published are compatible with both amd64 and arm64 architectures.
14+
1315
## Installation
1416
The easiest way to deploy this operator is using the provided [Helm chart](./helm/charts/scheduled-volume-snapshotter):
1517

0 commit comments

Comments
 (0)