Skip to content

Commit 0ebd2de

Browse files
authored
[ci] fix: featurebranch deploy (#4448)
1 parent e1c6c82 commit 0ebd2de

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/test-feature-branch.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test-feature-branch
1+
name: Deploy feature branch on staging
22
on:
33
workflow_dispatch:
44
inputs:
@@ -51,6 +51,10 @@ jobs:
5151
type=ref,event=pr
5252
type=semver,pattern={{version}}
5353
type=semver,pattern={{major}}.{{minor}}
54+
55+
- name: Set up Docker Buildx
56+
uses: docker/setup-buildx-action@v3
57+
5458
- name: Login to DockerHub
5559
if: github.event_name != 'pull_request'
5660
uses: docker/login-action@v3
@@ -66,6 +70,8 @@ jobs:
6670
push: ${{ github.event_name != 'pull_request' }}
6771
tags: ${{ steps.meta.outputs.tags }}
6872
labels: ${{ steps.meta.outputs.labels }}
73+
cache-from: type=registry,ref=filigran/openaev-platform:buildcache
74+
cache-to: type=registry,ref=filigran/openaev-platform:buildcache,mode=max
6975
outputs:
7076
dockerBuildDigest: ${{ steps.buildpush.outputs.digest }}
7177

@@ -97,7 +103,7 @@ jobs:
97103
job_templates launch 'Deploy OpenAEV feature branch for testing' \
98104
--wait \
99105
--inventory eu-west-staging \
100-
--extra_vars '"{"openaev_version":"${{steps.meta.outputs.version}}","openaev_config":${{ inputs.openaev_config }},"image_digest":"${{ needs.openaev-platform.outputs.dockerBuildDigest }}"}"'
106+
--extra_vars '{"openaev_version":"${{steps.meta.outputs.version}}","openaev_config":${{ inputs.openaev_config }},"image_digest":"${{ needs.openaev-platform.outputs.dockerBuildDigest }}"}'
101107
102108
- name: Forge URL to match playbook limitations
103109
id: urlforge

Dockerfile_ga

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:21-jdk-slim-bookworm AS app
1+
FROM eclipse-temurin:21.0.8_9-jre AS app
22

33
WORKDIR /opt
44
RUN apt update && apt install -y tini git --no-install-recommends && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)