136/sanitize returned api data (#373) #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |