You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
stacosys/.github/workflows/docker.yml

27 lines
891 B
YAML

name: docker
3 years ago
on:
push:
3 years ago
branches: [ main ]
3 years ago
jobs:
build_docker:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.10.13]
3 years ago
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up rye
5 months ago
uses: sksat/setup-rye@v0.8.0
- name: Sync dependencies using rye
run: |
rye pin ${{ matrix.python-version }}
rye sync
rye build --wheel --out dist
3 years ago
- name: Build the Docker image
run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
docker build . --file Dockerfile --tag docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPOSITORY }}:latest
docker push docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPOSITORY }}:latest