Skip to content

Commit

Permalink
Slight reshuffling of example steps (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiidani authored Jan 14, 2023
1 parent b65f300 commit 337edfd
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,28 +111,18 @@ jobs:
docker-compose up -d --force-recreate jenkins
while [ "$(docker inspect jenkins-provider-acc --format '{{ .State.Health.Status }}')" != "healthy" ]; do echo "Waiting for Jenkins to start..."; sleep 3; done
- name: Init example
working-directory: example/
run: terraform init

- name: Run example
working-directory: example/
env:
JENKINS_URL: "http://localhost:8080"
JENKINS_USERNAME: "admin"
JENKINS_PASSWORD: "admin"
run: |
terraform init
terraform apply -no-color -auto-approve
run: terraform apply -no-color -auto-approve

- name: Apply again
working-directory: example/
env:
JENKINS_URL: "http://localhost:8080"
JENKINS_USERNAME: "admin"
JENKINS_PASSWORD: "admin"
run: terraform apply -no-color -auto-approve

- name: Destroy example
working-directory: example/
env:
JENKINS_URL: "http://localhost:8080"
JENKINS_USERNAME: "admin"
JENKINS_PASSWORD: "admin"
run: terraform destroy -no-color -auto-approve

0 comments on commit 337edfd

Please sign in to comment.