update ci (#1)
Some checks failed
Build, Test & Publish / Build (push) Successful in 18s
Build, Test & Publish / Build and Publish Container Image (push) Failing after 9s
Build, Test & Publish / Deploy to Infrastructure (push) Has been skipped

Reviewed-on: #1
This commit is contained in:
2024-09-05 14:08:24 +10:00
parent 8ad5845efc
commit 6f9fa79394
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"