echo version
All checks were successful
Build a docker image for node-jellyfin-role-bot / build-docker-image (push) Successful in 6s

This commit is contained in:
mightypanders 2023-06-24 02:02:42 +02:00
parent 251e6ae3d6
commit be3ee5e493

View File

@ -19,6 +19,6 @@ jobs:
- name: Log in to the Container registry - name: Log in to the Container registry
run: docker login -u ${{ env.USER }} -p ${{ secrets.TOKEN }} ${{ env.REGISTRY }} run: docker login -u ${{ env.USER }} -p ${{ secrets.TOKEN }} ${{ env.REGISTRY }}
- name: Build Container - name: Build Container
run: docker build -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}" . run: echo "${{ env.VERSION }}" #docker build -t "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}" .
env: env:
version: "${{ cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' }}" version: "${{ cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' }}"