chore: Comment out unused Docker build and container run steps
This commit is contained in:
parent
7b89ff5cfb
commit
5a04adfa1f
1 changed files with 21 additions and 22 deletions
43
.github/workflows/docker-build.yml
vendored
43
.github/workflows/docker-build.yml
vendored
|
|
@ -53,32 +53,31 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build Docker Image
|
# - name: Build Docker Image
|
||||||
uses: docker/build-push-action@v5
|
# uses: docker/build-push-action@v5
|
||||||
id: docker_build
|
# id: docker_build
|
||||||
with:
|
# with:
|
||||||
context: .
|
# context: .
|
||||||
push: false # Do not push yet
|
# push: false # Do not push yet
|
||||||
platforms: "linux/amd64,linux/arm64/v8"
|
# platforms: "linux/amd64,linux/arm64/v8"
|
||||||
load: true
|
# load: true
|
||||||
file: ${{ matrix.file }}
|
# file: ${{ matrix.file }}
|
||||||
tags: ${{ env.TEST_TAG }}
|
# tags: ${{ env.TEST_TAG }}
|
||||||
- name: Run Container
|
# - name: Run Container
|
||||||
run: |
|
# run: |
|
||||||
docker run -d --name test_container -p 8000:8000 ${{ needs.setup.outputs.tags }}
|
# docker run -d --name test_container -p 8000:8000 ${{ needs.setup.outputs.tags }}
|
||||||
- name: Wait for Container to Start and Check Health
|
# - name: Wait for Container to Start and Check Health
|
||||||
run: |
|
# run: |
|
||||||
timeout 40 bash -c 'until curl -f http://127.0.0.1:8000/health; do sleep 1; done' || (echo "Server did not start in time" && docker logs test_container && docker stop test_container && docker rm test_container && exit 1)
|
# timeout 40 bash -c 'until curl -f http://127.0.0.1:8000/health; do sleep 1; done' || (echo "Server did not start in time" && docker logs test_container && docker stop test_container && docker rm test_container && exit 1)
|
||||||
- name: Stop and Remove Container
|
# - name: Stop and Remove Container
|
||||||
run: |
|
# run: |
|
||||||
docker stop test_container
|
# docker stop test_container
|
||||||
docker rm test_container
|
# docker rm test_container
|
||||||
- name: Push Docker Image
|
- name: Push Docker Image
|
||||||
if: success()
|
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true # Push only if the tests pass
|
push: true
|
||||||
platforms: "linux/amd64,linux/arm64/v8"
|
platforms: "linux/amd64,linux/arm64/v8"
|
||||||
file: ${{ matrix.file }}
|
file: ${{ matrix.file }}
|
||||||
tags: ${{ needs.setup.outputs.tags }}
|
tags: ${{ needs.setup.outputs.tags }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue