Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit b8f7336

Browse files
committed
ci(test): remove DNS record steps from workflow
1 parent 6f803ca commit b8f7336

1 file changed

Lines changed: 3 additions & 35 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -81,49 +81,17 @@ jobs:
8181
wait_for_ssh: 1
8282
env:
8383
API_TOKEN: ${{ secrets.HETZNER_TOKEN }}
84-
- name: Add DNS record
85-
uses: saitho/create-dns-record@patch-1
86-
with:
87-
type: "A"
88-
name: "${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
89-
content: "${{ steps.setup_server.outputs.hcloud_server_created_ipv4 }}"
90-
ttl: 1
91-
proxied: 0
92-
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
93-
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
94-
- name: Add DNS record for subdomain
95-
uses: saitho/create-dns-record@patch-1
96-
with:
97-
type: "A"
98-
name: "sub.${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
99-
content: "${{ steps.setup_server.outputs.hcloud_server_created_ipv4 }}"
100-
ttl: 1
101-
proxied: 0
102-
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
103-
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
104-
- uses: getstackhead/stackhead/actions/integration-test@next
84+
- uses: getstackhead/stackhead/actions/integration-test@feature/dns-support
10585
with:
10686
ipaddress: ${{ steps.setup_server.outputs.hcloud_server_created_ipv4 }}
10787
domain: '${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}'
10888
domain2: 'sub.${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}'
10989
webserver: '${{ env.WEBSERVER }}'
11090
container: '${{ env.CONTAINER }}'
11191
dns: '${{ env.DNS }}'
92+
dns_cloudflare_email: '${{ secrets.CLOUDFLARE_EMAIL }}'
93+
dns_cloudflare_apitoken: '${{ secrets.CLOUDFLARE_TOKEN }}'
11294
rolename: '${{ env.ROLE_NAME }}'
113-
- name: Remove DNS record
114-
uses: saitho/delete-dns-record@saitho-patch-1
115-
if: always()
116-
with:
117-
name: "${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
118-
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
119-
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
120-
- name: Remove DNS record for subdomain
121-
uses: saitho/delete-dns-record@saitho-patch-1
122-
if: always()
123-
with:
124-
name: "sub.${{ env.DOMAIN_NAME }}.${{ env.DOMAIN_SUFFIX }}"
125-
token: "${{ secrets.CLOUDFLARE_TOKEN }}"
126-
zone: "${{ secrets.CLOUDFLARE_ZONE }}"
12795
- name: Remove Hetzner server
12896
uses: saitho/hetzner-cloud-action@v1.1.0
12997
if: always()

0 commit comments

Comments
 (0)