Skip to content

Commit

Permalink
[DDS-1576] Added build step.
Browse files Browse the repository at this point in the history
  • Loading branch information
GROwen committed Jul 31, 2023
1 parent 96527bb commit 9d8bf11
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/goss-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
images: ["php-cli"]
images: ["bay-php_goss"]
type:
- php
steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
Expand All @@ -27,8 +34,25 @@ jobs:
${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.images }}
tags: |
type=ref,event=branch
- name: Clean ref_name
id: sanitise-ref-name
run: |
echo "SANITISED-REF-NAME=${{ github.ref_name }}" | tr '/' '-' >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v4
with:
push: false
context: ./images/bay-php_goss
build-args: |
BASE_IMAGE=${{ env.REGISTRY }}/${{ github.repository }}/php-cli:${{ steps.sanitise-ref-name.outputs.SANITISED-REF-NAME }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Install Goss
uses: e1himself/[email protected]

- name: Execute Goss tests
working-directory: ./tests
run: |
Expand Down

0 comments on commit 9d8bf11

Please sign in to comment.