fix: remove unnecessary build and push jobs from CI/CD pipeline
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
This commit is contained in:
@@ -32,10 +32,6 @@ jobs:
|
|||||||
# run: |
|
# run: |
|
||||||
# python -m flake8 web/ tests/ --max-line-length=120
|
# python -m flake8 web/ tests/ --max-line-length=120
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: test
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -47,13 +43,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker run --rm jobs-app python -m pytest tests/ -v
|
docker run --rm jobs-app python -m pytest tests/ -v
|
||||||
|
|
||||||
push:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [build, test]
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Push Docker image to gitea registry
|
- name: Push Docker image to gitea registry
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
env:
|
env:
|
||||||
@@ -62,7 +51,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: git.allucanget.biz/allucanget/jobs-app:latest
|
tags: git.allucanget.biz/allucanget/jobs:latest
|
||||||
|
|
||||||
# deploy:
|
# deploy:
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user