add deploy
Some checks failed
Deploy / deploy (push) Failing after 54s

This commit is contained in:
Nuno Duque Nunes 2026-05-18 04:23:49 +01:00
parent 12912acae2
commit b10108ce4f

View file

@ -9,8 +9,8 @@ jobs:
deploy: deploy:
runs-on: docker runs-on: docker
container: container:
image: docker:latest image: docker:latest
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
steps: steps:
- name: Checkout - name: Checkout
@ -19,15 +19,12 @@ jobs:
https://${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASSWORD }}@git.lan.krilio.net/nuno/test-app.git \ https://${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASSWORD }}@git.lan.krilio.net/nuno/test-app.git \
. .
- name: Login to registry - name: Build and push
run: | run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | \ echo "${{ secrets.REGISTRY_PASSWORD }}" | \
docker login git.lan.krilio.net \ docker login git.lan.krilio.net \
-u ${{ secrets.REGISTRY_USER }} \ -u ${{ secrets.REGISTRY_USER }} \
--password-stdin --password-stdin
- name: Build and push
run: |
docker build -t git.lan.krilio.net/nuno/test-app:prod . docker build -t git.lan.krilio.net/nuno/test-app:prod .
docker push git.lan.krilio.net/nuno/test-app:prod docker push git.lan.krilio.net/nuno/test-app:prod