Skip to content

Merge pull request #99 from utilitywarehouse/as-vault-v1.16.2 #84

Merge pull request #99 from utilitywarehouse/as-vault-v1.16.2

Merge pull request #99 from utilitywarehouse/as-vault-v1.16.2 #84

name: vault-toolkit
on:
push:
branches:
- "*"
tags:
- "v*"
pull_request:
branches:
- "master"
env:
REGISTRY: quay.io
IMAGE_NAME: utilitywarehouse/vault-toolkit
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
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 Quay.io Container Registry
uses: docker/login-action@v1
with:
registry: quay.io
username: utilitywarehouse+drone_ci
password: ${{ secrets.SYSTEM_QUAY_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: vault-toolkit/
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}