Skip to content

Adding static Cert TLS values.yaml (#28) #4

Adding static Cert TLS values.yaml (#28)

Adding static Cert TLS values.yaml (#28) #4

Workflow file for this run

name: Docker
on:
push:
branches:
- master
tags:
- "[0-9]+.[0-9]+.[0-9]+"
env:
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
jobs:
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Checkout code
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: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.ref }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Determine tag or commit
uses: haya14busa/action-cond@v1
id: refortag
with:
cond: ${{ startsWith(github.ref, 'refs/tags/') }}
if_true: ${{ github.ref }}
if_false: latest
- name: Determine image tag
id: imagetag
run: echo "::set-output name=value::${TAG_OR_BRANCH##*/}"
env:
TAG_OR_BRANCH: ${{ steps.refortag.outputs.value }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build bank-vaults
uses: docker/build-push-action@v2
with:
tags: ghcr.io/banzaicloud/bank-vaults:${{ steps.imagetag.outputs.value }}
file: Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Build vault-env
uses: docker/build-push-action@v2
with:
tags: ghcr.io/banzaicloud/vault-env:${{ steps.imagetag.outputs.value }}
file: Dockerfile.vault-env
platforms: ${{ env.PLATFORMS }}
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Build vault-operator
uses: docker/build-push-action@v2
with:
tags: ghcr.io/banzaicloud/vault-operator:${{ steps.imagetag.outputs.value }}
file: Dockerfile.operator
platforms: ${{ env.PLATFORMS }}
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Build vault-secrets-webhook
uses: docker/build-push-action@v2
with:
tags: ghcr.io/banzaicloud/vault-secrets-webhook:${{ steps.imagetag.outputs.value }}
file: Dockerfile.webhook
platforms: ${{ env.PLATFORMS }}
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache