Skip to content

added live & ready endpoints #1

added live & ready endpoints

added live & ready endpoints #1

Workflow file for this run

name: Build and Push Docker Image to Docker Hub
on:
push:
tags: ["v*"]
jobs:
push_to_registry:
name: push docker image to hub
runs-on: ubuntu-latest
steps:
- name: check repository
uses: actions/checkout@v4
- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: collecting metadata
id: meta
uses: docker/metadata-action@v5
with:
images: w1n2k/magnify
tags: type=semver,pattern={{version}}
- name: build and push docker image to registry
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}