Skip to content

Merge pull request #353 from kotalco/352-create-tls-store-for-letsenc… #255

Merge pull request #353 from kotalco/352-create-tls-store-for-letsenc…

Merge pull request #353 from kotalco/352-create-tls-store-for-letsenc… #255

name: Build-Push-staging-core-api
on:
push:
branches: [master]
tags:
- "v*"
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: |
docker.io/kotalco/core-api
tags: |
type=sha,prefix=,suffix=,format=short
flavor: |
latest=true
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: kotalco
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
SENDGRID_API_KEY=${{ secrets.SENDGRID_API_KEY }}