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: |
|
run: |
|
||||||
docker run --rm local-${{ inputs.app }}:${{ inputs.dockerTag }} /bin/sh -c "echo 'Smoke test OK'"
|
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
|
- name: Push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_NAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
context: .
|
context: .
|
||||||
file: ./dockerfiles/DebianJava
|
file: ./dockerfiles/DebianJava
|
||||||
build-args: |
|
build-args: |
|
||||||
|
|||||||
16
.github/workflows/build-python-app.yml
vendored
16
.github/workflows/build-python-app.yml
vendored
@ -25,6 +25,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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.)
|
# Install test dependencies (pytest, asyncio test libs, etc.)
|
||||||
- name: Install test dependencies
|
- name: Install test dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -54,17 +61,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker run --rm local-${{ inputs.app }}:${{ inputs.dockerTag }} /bin/sh -c "echo 'Smoke test OK'"
|
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
|
# Push final image
|
||||||
- name: Push Docker image
|
- name: Push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_NAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
context: .
|
context: .
|
||||||
file: ./dockerfiles/Python
|
file: ./dockerfiles/Python
|
||||||
build-args: |
|
build-args: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user