-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from thebsdbox/actions_indent
indent fix
- Loading branch information
Showing
2 changed files
with
72 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
name: Publish the latest dev image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare Names | ||
id: prep | ||
run: | | ||
DOCKER_IMAGE=kubevip/kube-vip-cloud-provider | ||
VERSION=$(echo ${GITHUB_SHA} | cut -c1-8) | ||
TAGS="${DOCKER_IMAGE}:${VERSION}" | ||
TAGS="$TAGS,${DOCKER_IMAGE}:nightly" | ||
echo ::set-output name=tags::${TAGS} | ||
- name: Prepare Names | ||
id: prep | ||
run: | | ||
DOCKER_IMAGE=kubevip/kube-vip-cloud-provider | ||
VERSION=$(echo ${GITHUB_SHA} | cut -c1-8) | ||
TAGS="${DOCKER_IMAGE}:${VERSION}" | ||
TAGS="$TAGS,${DOCKER_IMAGE}:nightly" | ||
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: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- 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: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push main branch | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm/v7,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.prep.outputs.tags }} | ||
- name: Build and push main branch | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm/v7,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.prep.outputs.tags }} | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: Publish Releases to Docker Hub | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
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: 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: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- 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: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push main branch | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm/v7,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.prep.outputs.tags }} | ||
- name: Build and push main branch | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm/v7,linux/arm64 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.prep.outputs.tags }} | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |