Skip to content

Commit

Permalink
chore: use Depot for flagsmith-frontend image build (#3186)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Dec 19, 2023
1 parent a42ae58 commit 76c32ac
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/frontend-docker-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
runs-on: ubuntu-latest
name: Frontend Publish Docker Image

permissions:
id-token: write
contents: read

steps:
- name: Cloning repo
uses: actions/checkout@v3
Expand All @@ -27,6 +31,9 @@ jobs:
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
Expand All @@ -37,12 +44,6 @@ jobs:
curl --location --request GET 'https://api.flagsmith.com/api/v1/flags/' --header 'X-Environment-Key: ${{
secrets.FLAGSMITH_ENVIRONMENT_KEY }}' > frontend/flags.json
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand All @@ -51,9 +52,10 @@ jobs:

- name: Build and push images
id: docker_build
uses: docker/build-push-action@v3
uses: depot/build-push-action@v1
with:
platforms: linux/amd64,linux/arm64
file: frontend/Dockerfile
project: qsrts2l4gr
push: true
tags: ${{ steps.meta.outputs.tags }}

3 comments on commit 76c32ac

@vercel
Copy link

@vercel vercel bot commented on 76c32ac Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 76c32ac Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 76c32ac Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-git-main-flagsmith.vercel.app
docs.flagsmith.com
docs-flagsmith.vercel.app
docs.bullet-train.io

Please sign in to comment.