update swagger warp ID #86
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 Publish | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Docker login | |
run: | | |
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag ghcr.io/buildtheearth/network-api:$(git rev-parse --short HEAD) --tag ghcr.io/buildtheearth/network-api:latest | |
- name: Docker push tag | |
run: docker push ghcr.io/buildtheearth/network-api:$(git rev-parse --short HEAD) | |
- name: Docker push latest | |
run: docker push ghcr.io/buildtheearth/network-api:latest |