Skip to content

Commit

Permalink
ci: fix backend image build (#418)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre-P <alexandre.picosson@owkin.com>
  • Loading branch information
AlexandrePicosson authored Sep 5, 2022
1 parent 49f0b94 commit d148211
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
paths:
- 'docker/substra-backend/*'
- 'backend/**'
- '.github/workflows/container-image-backend.yml'

jobs:
build:
Expand All @@ -31,18 +32,20 @@ jobs:
echo "BACKEND_VERSION=`echo $GITHUB_REF | cut -d / -f 3`+`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
fi
- name: Login to GCR
- name: Login to registry
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCP_SA_KEY }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}


- name: Docker metadata
id: docker-metadata
uses: docker/metadata-action@v4
with:
images: 'gcr.io/${{ secrets.GCP_PROJECT_ID }}/connect-backend'
images: 'ghcr.io/substra/substra-backend'
flavor: |
latest=${{ env.LATEST }}
Expand Down

0 comments on commit d148211

Please sign in to comment.