Skip to content

Commit 5568e5a

Browse files
committed
2 parents c0f88e6 + 15d27ef commit 5568e5a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/build-and-push-hf.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Push
1+
name: Build and Push - Huggingface Detector
22
on:
33
push:
44
branches:
@@ -74,15 +74,11 @@ jobs:
7474
echo "IMAGE_NAME=${{ vars.QUAY_RELEASE_REPO }}" >> $GITHUB_ENV
7575
#
7676
# Run docker commands
77-
- name: Pull prerequisite images
78-
run: |
79-
docker pull $(cat detectors/Dockerfile.hf | grep -o -P '(?<=FROM ).*(?= AS base)')
80-
docker pull $(cat detectors/Dockerfile.hf | grep -o -P '(?<=FROM ).*(?= AS builder)')
8177
- name: Put expiry date on CI-tagged image
8278
if: env.BUILD_CONTEXT == 'ci'
8379
run: echo 'LABEL quay.expires-after=7d#' >> detectors/Dockerfile.hf
8480
- name: Build image
85-
run: cd detectors; docker build -t ${{ env.IMAGE_NAME }}:$TAG Dockerfile.hf
81+
run: docker build -t ${{ env.IMAGE_NAME }}:$TAG detectors/Dockerfile.hf
8682
- name: Log in to Quay
8783
run: docker login -u ${{ secrets.QUAY_ROBOT_USERNAME }} -p ${{ secrets.QUAY_ROBOT_SECRET }} quay.io
8884
- name: Push to Quay CI repo

0 commit comments

Comments
 (0)