Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
ci: Adds docker build & push (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm authored Oct 25, 2023
1 parent f99c66a commit fa628c6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: push
on:
push:
branches: main

jobs:
dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.6.1"
- name: Resolve dependencies
run: poetry export -f requirements.txt --without-hashes --output requirements.txt
- name: Build docker
run: docker build src/. -t quackai/contribution-api:latest
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: quackai
password: ${{ secrets.DOCKERHUB_PW }}
- name: Push to hub
run: docker push quackai/contribution-api:latest

0 comments on commit fa628c6

Please sign in to comment.