Skip to content

Commit

Permalink
Add quay.io image registry
Browse files Browse the repository at this point in the history
Docker Hub introduced container retention, which might
delete some unused tags. Using quay.io as mirror.
  • Loading branch information
ccremer committed Aug 24, 2020
1 parent dc883ea commit 077e878
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-go@v2-beta
with:
go-version: '^1.14.1'
go-version: '^1.14.3'
- uses: actions/cache@v1
with:
path: /home/runner/go/pkg/mod
Expand All @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-go@v2-beta
with:
go-version: '^1.14.1'
go-version: '^1.14.3'
- uses: actions/cache@v1
with:
path: /home/runner/go/pkg/mod
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-go@v2-beta
with:
go-version: '^1.14.1'
go-version: '^1.14.3'
- uses: actions/cache@v1
with:
path: /home/runner/go/pkg/mod
key: go-mod-release
- name: Login to Docker hub
run: docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_TOKEN }}
run: docker login -u "${{ secrets.DOCKER_HUB_USER }}" -p "${{ secrets.DOCKER_HUB_TOKEN }}"
- name: Login to Quay.io
run: docker login -u "${{ secrets.QUAY_IO_USER }}" -p "${{ secrets.QUAY_IO_TOKEN }}" quay.io
- uses: goreleaser/goreleaser-action@v1
with:
args: release --release-footer=.github/release-footer.md
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
before:
hooks:
- go vet ./...
- go fmt ./...
- go test -coverprofile c.out ./...

builds:
Expand All @@ -27,6 +28,8 @@ dockers:
- image_templates:
- "docker.io/ccremer/zfs-provisioner:v{{ .Version }}"
- "docker.io/ccremer/zfs-provisioner:v{{ .Major }}"
- "quay.io/ccremer/zfs-provisioner:v{{ .Version }}"
- "quay.io/ccremer/zfs-provisioner:v{{ .Major }}"
extra_files:
- docker/zfs.sh
- docker/update-permissions.sh
Expand Down
12 changes: 6 additions & 6 deletions pkg/provisioner/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
)

const (
DatasetPathAnnotation = "zfs.pv.kubernetes.io/zfs-dataset-path"
ZFSHostAnnotation = "zfs.pv.kubernetes.io/zfs-host"
DatasetPathAnnotation = "zfs.pv.kubernetes.io/zfs-dataset-path"
ZFSHostAnnotation = "zfs.pv.kubernetes.io/zfs-host"

RefQuotaProperty = "refquota"
RefReservationProperty = "refreservation"
ManagedByProperty = "io.kubernetes.pv.zfs:managed_by"
ReclaimPolicyProperty = "io.kubernetes.pv.zfs:reclaim_policy"
RefQuotaProperty = "refquota"
RefReservationProperty = "refreservation"
ManagedByProperty = "io.kubernetes.pv.zfs:managed_by"
ReclaimPolicyProperty = "io.kubernetes.pv.zfs:reclaim_policy"
)

// ZFSProvisioner implements the Provisioner interface to create and export ZFS volumes
Expand Down

0 comments on commit 077e878

Please sign in to comment.