-
Notifications
You must be signed in to change notification settings - Fork 64
36 lines (31 loc) · 1.02 KB
/
reusable-e2e-tests-build.yml
File metadata and controls
36 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: '[reusable only] e2e tests build'
on:
workflow_call:
jobs:
e2e-tests-build:
name: 'Tests: End-to-end (build job)'
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v4
# build API (using cache; provide image to docker compose)
- name: Build docker image (API/PHP)
uses: docker/build-push-action@v7
with:
file: api/Dockerfile
context: './api'
push: false
load: true
target: frankenphp_prod
builder: ${{ steps.buildx.outputs.name }}
tags: docker.io/ecamp/ecamp3-api:latest
cache-from: type=gha,scope=api
cache-to: type=gha,scope=api,mode=max
outputs: type=docker,dest=/tmp/ecamp3-dev-api.tar
- uses: actions/upload-artifact@v7
with:
name: e2e-tests-images
path: /tmp/ecamp3-dev-*.tar