Skip to content

integrate with docker #2

integrate with docker

integrate with docker #2

Workflow file for this run

name: CICD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install
run: make install
- name: test
run: make test
- name: format
run: make format
- name: lint
run: make lint
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
run: make build
- name: Push image
run: make push
env:
DOCKER_ID_USER: ${{ secrets.DOCKER_USERNAME }}
IMAGE_NAME: skye_mini_project_12