Skip to content

Commit

Permalink
#8762 - Update DNS container monthly (#8878)
Browse files Browse the repository at this point in the history
* #8762 -  update DNS container monthly

* #8762 - update DNS container monthly

* schedule dns container updates

* Add ability to run manually

* Include manual run capability

* Run manual test

* Skip terraform on manual run

* dns masq

* Run only DNS update step on schedule

* dns container updates

* Removed commented code

---------

Co-authored-by: Supriya Addagada <supriya.addagada@geha.com>
  • Loading branch information
supriyaaddagada and Supriya Addagada committed Mar 31, 2023
1 parent 2be144b commit 161feca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish_docker.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Publish Container to GitHub

on:
workflow_dispatch:
push:
branches:
- master
schedule:
- cron: "0 0 1 * *"

env:
REGISTRY: ghcr.io
Expand All @@ -13,8 +16,8 @@ jobs:
name: Pre Job
runs-on: ubuntu-latest
outputs:
has_tfcli_change: ${{ steps.skip_check.outputs.tfcli }}
has_dnsmasq_change: ${{ steps.skip_check.outputs.dnsmasq }}
has_tfcli_change: ${{ steps.skip_check.outputs.tfcli && github.event_name != 'schedule'}}
has_dnsmasq_change: ${{ steps.skip_check.outputs.dnsmasq || github.event_name == 'schedule'}}
steps:
- name: "Check out changes"
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
Expand All @@ -33,7 +36,7 @@ jobs:
publish_tfcli:
name: Publish Terraform CLI
needs: pre_job
if: ${{ needs.pre_job.outputs.has_tfcli_change == 'true' }}
if: ${{ needs.pre_job.outputs.has_tfcli_change == 'true'}}
runs-on: ubuntu-latest
defaults:
run:
Expand Down

0 comments on commit 161feca

Please sign in to comment.