Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update CI and cache cleanup #194

Merged
merged 6 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ updates:

# Maintain dependencies for Golang
- package-ecosystem: "gomod"
target-branch: "develop"
directory: "/"
schedule:
interval: "weekly"
Expand All @@ -42,3 +43,10 @@ updates:
directory: "/"
schedule:
interval: "weekly"

# Maintain dependencies for Kotlin
- package-ecosystem: "gradle"
target-branch: "develop"
directory: "/"
schedule:
interval: "weekly"
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ defaults:
run:
shell: bash


jobs:

build-docker:
name: "Build Docker image"
runs-on: ubuntu-latest
Expand All @@ -21,7 +23,7 @@ jobs:
with:
install: true
version: latest

- name: Configure Docker image metadata
id: meta
uses: docker/metadata-action@v4
Expand All @@ -33,7 +35,7 @@ jobs:
type=sha,format=long

- name: Build image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
Expand All @@ -43,7 +45,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=min

- name: Save Docker image
run: docker save ${{ env.IMAGE_NAME }} > credential-service-staging.tar

Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/cleanup-cache-automatic.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/cleanup-cache-manual.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/cleanup-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Cleanup - Cache"
on:
schedule:
# Cron schedule is every 2 days because this repo's cache is quite large
- cron: "0 0 * * */2"
workflow_dispatch:

jobs:

delete-caches:
name: "Delete Actions caches"
runs-on: ubuntu-latest

steps:
- name: "Wipe Github Actions cache"
uses: easimon/wipe-cache@v2
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: amannn/action-semantic-pull-request@v5.0.2
- uses: amannn/action-semantic-pull-request@v5.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
org.opencontainers.image.documentation="https://docs.cheqd.io/node"

- name: Build image with labels
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
Expand Down
Loading