Merge pull request #3 from nucypher/docker #2
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 and 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 |