Compare commits

..

2 Commits

Author SHA1 Message Date
0cb19ba8f1 use bash scripts for docker stage
All checks were successful
Build a docker image for node-jellyfin-role-ot / build-docker-image (push) Successful in 11s
2023-06-14 22:27:18 +02:00
5dcf766593 dockerbuild and dockerpush scripts 2023-06-14 22:27:05 +02:00
3 changed files with 5 additions and 2 deletions

View File

@ -23,6 +23,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.USER }}/${{ IMAGE_NAME }}:latest" . run: ./dockerbuild.sh "${{ env.REGISTRY }}/${{ env.USER }}/${{ IMAGE_NAME }}:latest"
- name: Push Container - name: Push Container
run: docker push "${{ env.REGISTRY }}/${{ env.USER }}/${{ IMAGE_NAME }}:latest" run: docker push "${{ env.REGISTRY }}/${{ env.USER }}/${{ IMAGE_NAME }}:latest"

View File

@ -1 +1,2 @@
docker build --tag node-jellyfin-role-bot:latest . #!/bin/bash
docker build --tag $1 .

2
dockerpush.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker push $1