feat(depot-src-update): automated dependency update #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2022 Geoffrey Huntley <ghuntley@ghuntley.com>. All rights reserved. | |
# SPDX-License-Identifier: Proprietary | |
name: "//ops/dns: terraform plan" | |
on: | |
push: | |
branches: | |
- '!trunk' | |
paths: | |
- 'ops/dns/**' | |
pull_request: | |
workflow_dispatch: | |
# Cancel in-progress runs for pull requests when developers push | |
# additional changes | |
concurrency: | |
group: ${{ github.workflow }}-ops-dns-plan-${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
ops-dns-plan: | |
runs-on: namespace-profile-cached-amd64 | |
steps: | |
- uses: namespacelabs/nscloud-checkout-action@v2 | |
- name: Set up Nix cache | |
run: | | |
sudo mkdir -p /cache/nix /nix | |
sudo mount --bind /cache/nix /nix | |
sudo chown runner /nix | |
- uses: cachix/install-nix-action@v24 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
system-features = kvm nixos-test | |
- uses: JRMurr/direnv-nix-action@v3 | |
with: | |
install-nix: "false" | |
cache-store: "false" | |
- name: deploy-dns plan | |
id: deploy-dns | |
run: direnv exec . deploy-dns plan | |
env: | |
GOOGLE_CREDENTIALS: ${{ secrets.TFSTATE_GOOGLE_CREDENTIALS }} | |
TF_VAR_cloudflare_email: ${{ secrets.TF_VAR_cloudflare_email }} | |
TF_VAR_cloudflare_api_key: ${{ secrets.TF_VAR_cloudflare_api_key }} | |
TF_VAR_com_ghuntley_cloudflare_zone_id: ${{ secrets.TF_VAR_com_ghuntley_cloudflare_zone_id }} | |
TF_VAR_dev_ghuntley_cloudflare_zone_id: ${{ secrets.TF_VAR_dev_ghuntley_cloudflare_zone_id }} | |
TF_VAR_net_ghuntley_cloudflare_zone_id: ${{ secrets.TF_VAR_net_ghuntley_cloudflare_zone_id }} | |
TF_VAR_com_ghuntley_ipv4: ${{ secrets.TF_VAR_com_ghuntley_ipv4 }} | |
TF_VAR_com_ghuntley_ipv6: ${{ secrets.TF_VAR_com_ghuntley_ipv6 }} | |
TF_VAR_dev_ghuntley_ipv4: ${{ secrets.TF_VAR_dev_ghuntley_ipv4 }} | |
TF_VAR_dev_ghuntley_ipv6: ${{ secrets.TF_VAR_dev_ghuntley_ipv6 }} | |
TF_VAR_net_ghuntley_ipv4: ${{ secrets.TF_VAR_net_ghuntley_ipv4 }} | |
TF_VAR_net_ghuntley_ipv6: ${{ secrets.TF_VAR_net_ghuntley_ipv6 }} | |
- name: Find Comment | |
uses: peter-evans/find-comment@v2 | |
id: fc | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: 'github-actions[bot]' | |
body-includes: Build output | |
- name: Create or update comment | |
uses: peter-evans/create-or-update-comment@v3 | |
with: | |
comment-id: ${{ steps.fc.outputs.comment-id }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
Build output | |
${{ steps.build.outputs.build-log }} | |
edit-mode: replace |