Skip to content

Commit 5f865d7

Browse files
committed
refactor(ci): changes docker exec method
1 parent 5e2a058 commit 5f865d7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,18 @@ jobs:
9898
9999
- name: Run home-manager switch
100100
run: |
101-
docker exec ${{ steps.container.outputs.container_name }} bash \
101+
docker run --rm ${{ steps.container.outputs.container_name }} \
102102
home-manager switch
103103
104104
- name: Run git config test in container
105105
run: |
106-
docker exec ${{ steps.container.outputs.container_name }} \
107-
bash -c "PATH=~/.nix-profile/bin:\$PATH;
106+
docker run --rm ${{ steps.container.outputs.container_name }} \
108107
git config --global user.name | grep -q 'PedroBrantes'
109108
"
110109
111110
- name: Run env test in container
112111
run: |
113-
docker exec ${{ steps.container.outputs.container_name }} \
114-
bash -c "PATH=~/.nix-profile/bin:\$PATH;
112+
docker run --rm ${{ steps.container.outputs.container_name }} \
115113
printenv EDITOR | grep -q 'nvim'
116114
"
117115

0 commit comments

Comments
 (0)