Skip to content

Commit

Permalink
tried appending dockerkey to command
Browse files Browse the repository at this point in the history
  • Loading branch information
KevJimenez committed Feb 2, 2024
1 parent 11f893d commit 71c114d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,5 @@ jobs:
run: sleep 7s

- name: Run Ansible Playbook
run: ansible-playbook -i aws_ec2.yml playbook.yml
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_KEY: ${{ secrets.DOCKER_KEY }}

run: ansible-playbook -i aws_ec2.yml -e "docker_key=${{ secrets.DOCKER_KEY }}" playbook.yml
...
4 changes: 2 additions & 2 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
- name: Log in to DockerHub
become_user: ubuntu
community.docker.docker_login:
username: "{{ lookup('env', 'DOCKER_USER') }}"
password: "{{ lookup('env', 'DOCKER_KEY') }}"
username: kevjimenez
password: {{ docker_key }}

- name: Install Docker Watchtower
community.docker.docker_container:
Expand Down

0 comments on commit 71c114d

Please sign in to comment.