diff --git a/.github/workflows/ghcr-push.yml b/.github/workflows/ghcr-push.yml index 551cb00..568d5db 100644 --- a/.github/workflows/ghcr-push.yml +++ b/.github/workflows/ghcr-push.yml @@ -27,8 +27,15 @@ jobs: # - csp2_producer # - csp2_transformer # - dashboard + + # 1. go to the directory + - name: Change directory + run: cd csp1_producer + # 2. build the image - name: Build image - run: docker build csp1_producer --file Dockerfile --tag $IMAGE_NAME/csp1_producer --label "runnumber=${GITHUB_RUN_ID}" + run: docker build . --file Dockerfile --tag $IMAGE_NAME/csp1_producer --label "runnumber=${GITHUB_RUN_ID}" + + - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Push image