chore(main): release 2.119.1 (#4127) #912
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Frontend Publish Docker Images | |
on: | |
push: | |
tags: | |
- '*' | |
paths: | |
- frontend/** | |
- .github/** | |
jobs: | |
build-frontend-dockerhub: | |
runs-on: ubuntu-latest | |
name: Frontend Publish Docker Image | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Cloning repo | |
uses: actions/checkout@v4 | |
- name: Docker metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
flagsmith/flagsmith-frontend | |
tags: | | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
- name: Set up Depot CLI | |
uses: depot/setup-action@v1 | |
- name: Write git info to Docker image | |
run: | | |
cd frontend | |
echo ${{ github.sha }} > CI_COMMIT_SHA | |
- name: Download features | |
run: > | |
curl --location --request GET 'https://api.flagsmith.com/api/v1/flags/' --header 'X-Environment-Key: ${{ | |
secrets.FLAGSMITH_ENVIRONMENT_KEY }}' > frontend/flags.json | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push images | |
id: docker_build | |
uses: depot/build-push-action@v1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
file: frontend/Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} |