Skip to content

Commit

Permalink
Merge pull request #30 from thebsdbox/new_release
Browse files Browse the repository at this point in the history
New release changes
  • Loading branch information
thebsdbox authored Feb 27, 2022
2 parents 5efdde7 + 6a3f546 commit f235994
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,32 @@ 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
uses: docker/setup-buildx-action@v1
- 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 }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f235994

Please sign in to comment.