Merge pull request #2 from nucypher/docker #1
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" | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
deploy: | |
name: build && push image to docker hub | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: 'main' | |
- name: setup docker buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: docker login | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: build and push api | |
id: build-push-api | |
uses: docker/build-push-action@v3 | |
with: | |
context: ../../ | |
file: ./deploy/Dockerfile | |
push: true | |
tags: nucypher/train45:latest |