Skip to content

Commit

Permalink
fixing docker build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
DerLev committed Apr 1, 2024
1 parent b637fc5 commit 77c0204
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/integration-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,8 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const rawResponse = await fetch("https://run.googleapis.com/v2/projects/${{ vars.GCP_PROJECT_ID }}/locations/${{ env.API_CLOUD_RUN_LOCATION }}/services/${{ env.API_CLOUD_RUN_SERVICE }}/revisions", { headers: { 'Authorization': "Bearer ${{ steps.auth.outputs.access_token }}" } });
console.log(rawResponse);
const response = await rawResponse.json();
console.log(response);
const response = await fetch("https://run.googleapis.com/v2/projects/${{ vars.GCP_PROJECT_ID }}/locations/${{ env.API_CLOUD_RUN_LOCATION }}/services/${{ env.API_CLOUD_RUN_SERVICE }}/revisions", { headers: { 'Authorization': "Bearer ${{ steps.auth.outputs.access_token }}" } })
.then(res => res.json());
const toBeDeleted = response.revisions.sort((a, b) => (new Date(b.createTime) - new Date(a.createTime))).slice(1);
const deletionPromises = [];
Expand Down Expand Up @@ -207,7 +204,7 @@ jobs:
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
context: public-api/
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 77c0204

Please sign in to comment.