Skip to content

feat: Adding ping command, usage docs and release utils (#98) #1

feat: Adding ping command, usage docs and release utils (#98)

feat: Adding ping command, usage docs and release utils (#98) #1

Workflow file for this run

name: Building Docker and Push to DockerHub
on:
push:
tags:
- v*
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: pactus/pactus
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}