Skip to content

github: add docker push readme action #14

github: add docker push readme action

github: add docker push readme action #14

name: Push OpenSIPS CLI Images in Docker Hub
on:
push:
repository_dispatch:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: opensips/opensips-cli:latest