Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Merge pull request #26 from percona/EVEREST-149 #60

Merge pull request #26 from percona/EVEREST-149

Merge pull request #26 from percona/EVEREST-149 #60

Workflow file for this run

name: Build and Push image
on:
push:
branches: [ main ]
tags:
- v*
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/percona/dbaas-catalog
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
file: dbaas-catalog.Dockerfile