Runner10
This commit is contained in:
parent
f33a0f5064
commit
bcaac44b37
8
.github/workflows/build-java-app.yml
vendored
8
.github/workflows/build-java-app.yml
vendored
@ -72,15 +72,11 @@ jobs:
|
||||
run: |
|
||||
docker run --rm local-${{ inputs.app }}:${{ inputs.dockerTag }} /bin/sh -c "echo 'Smoke test OK'"
|
||||
|
||||
- name: Docker login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_NAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
- name: Push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_NAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
context: .
|
||||
file: ./dockerfiles/DebianJava
|
||||
build-args: |
|
||||
|
||||
16
.github/workflows/build-python-app.yml
vendored
16
.github/workflows/build-python-app.yml
vendored
@ -25,6 +25,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd apps/${{ inputs.app }}
|
||||
if [ -f requirements.txt ]; then
|
||||
pip install -r requirements.txt
|
||||
fi
|
||||
|
||||
# Install test dependencies (pytest, asyncio test libs, etc.)
|
||||
- name: Install test dependencies
|
||||
run: |
|
||||
@ -54,17 +61,12 @@ jobs:
|
||||
run: |
|
||||
docker run --rm local-${{ inputs.app }}:${{ inputs.dockerTag }} /bin/sh -c "echo 'Smoke test OK'"
|
||||
|
||||
# Login to Docker Hub
|
||||
- name: Docker login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_NAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
# Push final image
|
||||
- name: Push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_NAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
context: .
|
||||
file: ./dockerfiles/Python
|
||||
build-args: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user