Skip to content

Commit

Permalink
GHA: Use component_info to include information on what directories sh…
Browse files Browse the repository at this point in the history
…ould be in the TEST images
  • Loading branch information
quartje committed Dec 7, 2023
1 parent 7dcf074 commit 4e14f8f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build-push-test-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
- name: Build the app
uses: openconext/build-and-publish-test-container/php82-node20@main
with:
dir_to_include: dev/
use_yarn: true

- name: Set up QEMU
Expand All @@ -33,12 +32,25 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set docker labels and tags
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/openconext/stepup-azuremfa/stepup-azuremfa
flavor: |
latest=false
suffix=-test
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=sha
- name: Build and push the TEST image
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile.test
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/openconext/stepup-azuremfa/stepup-azuremfa:test
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions component_info
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ SYMFONY_VERSION=6
ENCORE=yes
ASSETIC=no
NODE_VERSION=20
TEST_EXTRA_DIRS="dev/ tests/"
4 changes: 2 additions & 2 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ADD output.tar /var/www/html/
# Set the default workdir
WORKDIR /var/www/html
# Add the application configuration files
COPY config/packages/parameters.yaml.dist config/packages/parameters.yaml
COPY config/packages/institutions.yaml.dist config/packages/institutions.yaml
COPY config/openconext/parameters.yaml.dist config/openconext/parameters.yaml
COPY config/openconext/institutions.yaml.dist config/openconext/institutions.yaml
COPY config/packages/prod/monolog.yaml.docker config/packages/prod/monolog.yaml

# Add the config files for Apache2
Expand Down

0 comments on commit 4e14f8f

Please sign in to comment.