Skip to content

Commit

Permalink
migrate mover to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Jun 8, 2021
1 parent 307acca commit 4478d28
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
assignees:
- BeryJu
- package-ecosystem: gomod
directory: "/"
schedule:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/mover-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ci-build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: mover
tags: ghcr.io/beryju/korb-mover:latest
push: ${{ github.ref == 'refs/heads/master' }}
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ build-final:
GOOS=linux GOARCH=amd64 go build -v -o bin/korb-linux-amd64
GOOS=darwin GOARCH=amd64 go build -v -o bin/korb-darwin-amd64

mover:
cd mover/ && docker build -t beryju/korb-mover .
docker push beryju/korb-mover

all: build mover
all: build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Usage:
korb [pvc [pvc]] [flags]
Flags:
--docker-image string Image to use for moving jobs (default "beryju/korb-mover:latest")
--docker-image string Image to use for moving jobs (default "ghcr.io/beryju/korb-mover:latest")
--force Ignore warning which would normally halt the tool during validation.
-h, --help help for korb
--kubeConfig string (optional) absolute path to the kubeConfig file (default "/home/jens/.kube/config")
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var rootCmd = &cobra.Command{
m.SourcePVCName = pvc
m.Run()
if len(args) > 1 {
fmt.Print("=====================")
fmt.Println("=====================")
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package config

var DockerImage = "beryju/korb-mover:latest"
var DockerImage = "ghcr.io/beryju/korb-mover:latest"

0 comments on commit 4478d28

Please sign in to comment.