From 6a3f546dbe405e25d9bb3464f0d88f5c462ca5c0 Mon Sep 17 00:00:00 2001 From: thebsdbox Date: Sun, 27 Feb 2022 15:13:41 +0000 Subject: [PATCH] New release changes --- .github/workflows/release.yml | 29 +++++++++++------------------ Makefile | 2 +- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4589da5..425af27 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,16 +10,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - - name: Prepare Names - id: prep - run: | - DOCKER_IMAGE=kubevip/kube-vip-cloud-provider - VERSION=${GITHUB_REF#refs/tags/} - TAGS="${DOCKER_IMAGE}:${VERSION}" - TAGS="$TAGS,${DOCKER_IMAGE}:latest" - echo ::set-output name=tags::${TAGS} - - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx @@ -27,22 +17,25 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v1 with: - username: kubevip - password: ${{ secrets.DOCKERHUB_KUBEVIP_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to Github Packages uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push main branch + - name: Build and push main branch + id: docker_build uses: docker/build-push-action@v2 with: context: . - platforms: linux/amd64,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.prep.outputs.tags }} - + tags: >- + kubevip/kube-vip-cloud-provider:${{ github.ref_name }}, + kubevip/kube-vip-cloud-provider:latest, + ghcr.io/kube-vip/kube-vip-cloud-provider:${{ github.ref_name }}, + ghcr.io/kube-vip/kube-vip-cloud-provider:latest - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} + run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file diff --git a/Makefile b/Makefile index c552cf8..645b9d1 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ TARGET := kube-vip-cloud-provider .DEFAULT_GOAL: $(TARGET) # These will be provided to the target -VERSION := 0.1 +VERSION := v0.0.2 BUILD := `git rev-parse HEAD` # Operating System Default (LINUX)