From c5054e0e804805b628deba5fe65979a4dfe3bf32 Mon Sep 17 00:00:00 2001 From: Abdelrahman Ahmed <16365652+abahmed@users.noreply.github.com> Date: Tue, 14 Dec 2021 21:09:04 +0200 Subject: [PATCH] :rocket: Use Github Container Registry (#7) * feature: detect new pod crashes * fix: update config.yaml * fixes alert for ContainerCreating and Completed * fix welcome message * :rocket: use github container registry * update README.md --- .github/auto_assign.yaml | 17 ----------------- .github/dependabot.yaml | 6 ------ .github/issue_label_bot.yaml | 4 ---- .github/pr_labels.yaml | 11 ----------- .github/release-drafter.yaml | 21 --------------------- .github/stale.yaml | 17 ----------------- .github/workflows/publish.yaml | 9 +++++---- README.md | 4 ++-- deploy/deploy.yaml | 2 +- 9 files changed, 8 insertions(+), 83 deletions(-) delete mode 100644 .github/auto_assign.yaml delete mode 100644 .github/dependabot.yaml delete mode 100644 .github/issue_label_bot.yaml delete mode 100644 .github/pr_labels.yaml delete mode 100644 .github/release-drafter.yaml delete mode 100644 .github/stale.yaml diff --git a/.github/auto_assign.yaml b/.github/auto_assign.yaml deleted file mode 100644 index 2cb0bbba..00000000 --- a/.github/auto_assign.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Set to true to add reviewers to pull requests -addReviewers: true - -# Set to true to add assignees to pull requests -addAssignees: true - -# A list of reviewers to be added to pull requests (GitHub user name) -reviewers: - - abahmed - -# A list of keywords to be skipped the process that add reviewers if pull requests include it -skipKeywords: - - wip - -# A number of reviewers added to the pull request -# Set 0 to add all the reviewers (default: 0) -numberOfReviewers: 0 diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml deleted file mode 100644 index 20e1ef18..00000000 --- a/.github/dependabot.yaml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "gomod" - directory: "/" - schedule: - interval: "daily" \ No newline at end of file diff --git a/.github/issue_label_bot.yaml b/.github/issue_label_bot.yaml deleted file mode 100644 index 7c003671..00000000 --- a/.github/issue_label_bot.yaml +++ /dev/null @@ -1,4 +0,0 @@ -label-alias: - bug: 'kind/bug' - feature_request: 'enhancement' - question: 'question' \ No newline at end of file diff --git a/.github/pr_labels.yaml b/.github/pr_labels.yaml deleted file mode 100644 index 119c2eb7..00000000 --- a/.github/pr_labels.yaml +++ /dev/null @@ -1,11 +0,0 @@ -version: '1' -invalidStatus: "pending" -labelRule: - values: - - "bug" - - "fix" - - "bugfix" - - "enhancement" - - "feature" - - "chore" - - "maintenance" diff --git a/.github/release-drafter.yaml b/.github/release-drafter.yaml deleted file mode 100644 index a38e06e3..00000000 --- a/.github/release-drafter.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name-template: 'v$NEXT_PATCH_VERSION 🌈' -tag-template: 'v$NEXT_PATCH_VERSION' -categories: - - title: '🚀 Features' - labels: - - 'feature' - - 'enhancement' - - title: '🐛 Bug Fixes' - labels: - - 'fix' - - 'bugfix' - - 'bug' - - title: '🧰 Maintenance' - labels: - - 'chore' - - 'maintenance' -change-template: '- $TITLE @$AUTHOR (#$NUMBER)' -template: | - ## Changes - - $CHANGES \ No newline at end of file diff --git a/.github/stale.yaml b/.github/stale.yaml deleted file mode 100644 index d9f65632..00000000 --- a/.github/stale.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security -# Label to use when marking an issue as stale -staleLabel: wontfix -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false \ No newline at end of file diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index cfe169e0..155f1658 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,17 +12,18 @@ jobs: - name: Check out the repo uses: actions/checkout@v2 - - name: Log in to Docker Hub + - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v3 with: - images: abahmed1/kwatch + images: ghcr.io/abahmed/kwatch - name: Build and push Docker image uses: docker/build-push-action@v2 diff --git a/README.md b/README.md index c2ce2448..b1c9355e 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ You need to get config template to add your configs ```shell -curl -L https://raw.githubusercontent.com/abahmed/kwatch/main/deploy/config.yaml -o config.yaml +curl -L https://raw.githubusercontent.com/abahmed/kwatch/v0.0.4/deploy/config.yaml -o config.yaml ``` Then edit `config.yaml` file and apply your configuration @@ -46,7 +46,7 @@ kubectl apply -f config.yaml To deploy **kwatch**, execute following command: ```shell -kubectl apply -f https://raw.githubusercontent.com/abahmed/kwatch/main/deploy/deploy.yaml +kubectl apply -f https://raw.githubusercontent.com/abahmed/kwatch/v0.0.4/deploy/deploy.yaml ``` ### Configuration diff --git a/deploy/deploy.yaml b/deploy/deploy.yaml index 81435fbf..9a7fa2c2 100644 --- a/deploy/deploy.yaml +++ b/deploy/deploy.yaml @@ -49,7 +49,7 @@ spec: serviceAccountName: kwatch containers: - name: kwatch - image: abahmed1/kwatch:latest + image: ghcr.io/abahmed/kwatch:v0.0.4 imagePullPolicy: Always volumeMounts: - name: config-volume