Skip to content

Commit

Permalink
chore: use Depot for flagsmith-api image build (#3179)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Dec 19, 2023
1 parent 65be52b commit ebdb2d8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/api-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: API Publish Docker Image

permissions:
id-token: write
contents: read

steps:
- name: Cloning repo
uses: actions/checkout@v3
Expand All @@ -27,16 +31,13 @@ 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: |
echo ${{ github.sha }} > api/CI_COMMIT_SHA
- 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 @@ -45,10 +46,11 @@ 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: api/Dockerfile
project: qsrts2l4gr
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}

3 comments on commit ebdb2d8

@vercel
Copy link

@vercel vercel bot commented on ebdb2d8 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-flagsmith.vercel.app
docs.flagsmith.com
docs-git-main-flagsmith.vercel.app
docs.bullet-train.io

@vercel
Copy link

@vercel vercel bot commented on ebdb2d8 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 ebdb2d8 Dec 19, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.