Skip to content

Commit

Permalink
Adding build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alterakey committed Nov 26, 2023
1 parent 9579ba5 commit fe6f44b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: deploy

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup environment
uses: actions/setup-python@v3
with:
python-version: 3.11

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Check out code
uses: actions/checkout@v3

- name: Building wheel
run: |
python -m pip install flit
flit build
- name: Building and pushing container (dockerhub)
uses: docker/build-push-action@v5
with:
push: true
tags: alterakey/trueseeing:latest

0 comments on commit fe6f44b

Please sign in to comment.