Update docker-build.yml
This commit is contained in:
@@ -12,7 +12,8 @@ jobs:
|
|||||||
build-and-test:
|
build-and-test:
|
||||||
name: Build and Test Docker Image
|
name: Build and Test Docker Image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 120 # Aumentado a 2 horas para dar más tiempo a la compilación
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -40,17 +41,16 @@ jobs:
|
|||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
tags: test/oxicloud:test
|
tags: test/oxicloud:test
|
||||||
cache-from: type=gha
|
# Caché eliminado para evitar problemas de expiración de token
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
|
|
||||||
# Run some basic tests against the built image
|
# Run some basic tests against the built image
|
||||||
- name: Test Docker image
|
- name: Test Docker image
|
||||||
run: |
|
run: |
|
||||||
docker run --rm test/oxicloud:test --version || true
|
docker run --rm test/oxicloud:test --version || true
|
||||||
docker run --rm test/oxicloud:test --help || true
|
docker run --rm test/oxicloud:test --help || true
|
||||||
|
|
||||||
# Verify the image structure
|
# Verify the image structure
|
||||||
echo "✅ Checking Docker image layers and size"
|
echo "✅ Checking Docker image layers and size"
|
||||||
docker image inspect test/oxicloud:test
|
docker image inspect test/oxicloud:test
|
||||||
|
|
||||||
echo "✅ Docker build and test completed successfully"
|
echo "✅ Docker build and test completed successfully"
|
||||||
|
|||||||
Reference in New Issue
Block a user