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

ci: Adds docker build & push #14

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading