update ci
All checks were successful
Build, Test & Publish / Build (pull_request) Successful in 18s
Build, Test & Publish / Build and Publish Container Image (pull_request) Has been skipped
Build, Test & Publish / Deploy to Infrastructure (pull_request) Has been skipped

This commit is contained in:
2024-09-05 14:07:14 +10:00
parent 8ad5845efc
commit cd669cd4d6
3 changed files with 21 additions and 13 deletions

View File

@ -4,4 +4,8 @@
remote_user: root
become: yes # sudo
roles:
- app
- app
vars:
registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}"
registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}"

View File

@ -1,7 +1,12 @@
- name: Login to Docker Registry
docker_login:
username: "{{ registry_username }}"
password: "{{ registry_password }}"
- name: Run Code App Container
docker_container:
name: code
image: liamp1/code:latest
image: liamsgit.dev/LiamPietralla/code-snippets
pull: yes
ports:
- "5000:80"