Skip to content

Only send reset password email in staging (#388) #110

Only send reset password email in staging (#388)

Only send reset password email in staging (#388) #110

name: Docker Image Build And Push
on:
push:
branches: [main]
# pull_request:
# branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to registry
uses: docker/login-action@v1
with:
registry: https://index.docker.io/v1/
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push container image to registry
uses: docker/build-push-action@v2
with:
push: true
context: .
tags: |
${{ secrets.DOCKERHUB_USER }}/npc:${{ github.sha }}
${{ secrets.DOCKERHUB_USER }}/npc:latest