refactor: Update Docker Build workflow to remove unnecessary steps and improve efficiency
This commit is contained in:
parent
058d00b4ca
commit
ad89346cc0
1 changed files with 0 additions and 28 deletions
28
.github/workflows/docker-build.yml
vendored
28
.github/workflows/docker-build.yml
vendored
|
|
@ -44,14 +44,6 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
platform: [linux/amd64, linux/arm64/v8]
|
|
||||||
file:
|
|
||||||
[
|
|
||||||
./docker/build_and_push.Dockerfile,
|
|
||||||
./docker/build_and_push_base.Dockerfile
|
|
||||||
]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|
@ -61,26 +53,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
# - name: Build Docker Image
|
|
||||||
# uses: docker/build-push-action@v5
|
|
||||||
# id: docker_build
|
|
||||||
# with:
|
|
||||||
# context: .
|
|
||||||
# push: false # Do not push yet
|
|
||||||
# platforms: "linux/amd64,linux/arm64/v8"
|
|
||||||
# load: true
|
|
||||||
# file: ${{ matrix.file }}
|
|
||||||
# tags: ${{ env.TEST_TAG }}
|
|
||||||
# - name: Run Container
|
|
||||||
# run: |
|
|
||||||
# docker run -d --name test_container -p 8000:8000 ${{ needs.setup.outputs.tags }}
|
|
||||||
# - name: Wait for Container to Start and Check Health
|
|
||||||
# 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)
|
|
||||||
# - name: Stop and Remove Container
|
|
||||||
# run: |
|
|
||||||
# docker stop test_container
|
|
||||||
# docker rm test_container
|
|
||||||
- name: Build and Push Docker Image
|
- name: Build and Push Docker Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue