mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-09-30 05:54:03 -05:00
Use Docker buildx bake for building
This commit is contained in:
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -9,6 +9,9 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -23,7 +26,7 @@ jobs:
|
||||
- name: Test environment setup script
|
||||
run: ./scripts/setup-environment.sh 1.1.1.1 2.2.2.2
|
||||
|
||||
- name: Upload environment setup script logs
|
||||
- name: Upload environment files
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: environment-setup
|
||||
@@ -32,8 +35,9 @@ jobs:
|
||||
- name: Validate Docker Compose file
|
||||
run: docker compose config
|
||||
|
||||
- name: Pull Docker images
|
||||
run: docker compose pull
|
||||
|
||||
- name: Build Docker images
|
||||
run: docker compose build
|
||||
uses: docker/bake-action@v4
|
||||
with:
|
||||
pull: true
|
||||
load: true
|
||||
push: false
|
||||
|
||||
@@ -362,6 +362,7 @@ volumes:
|
||||
account-certificates:
|
||||
|
||||
networks:
|
||||
default:
|
||||
# We need to use a custom network so that we can set a static IP address for
|
||||
# CoreDNS and use it as a DNS server for the other containers.
|
||||
internal:
|
||||
|
||||
Reference in New Issue
Block a user