Skip to content

Commit

Permalink
ci: Adding dependabot and bumping version prior
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jun 25, 2022
1 parent be7fffc commit 3d20ba4
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 16 deletions.
9 changes: 8 additions & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
commit-message:
prefix: ci
include: scope
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
time: '06:00'
time: "06:00"
day: sunday
commit-message:
prefix: chore
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/branch_clean.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
---
name: Git

permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none

on:
- pull_request

Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
---
name: Build

permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none

on:
push:
branches:
Expand All @@ -10,7 +22,7 @@ on:
- main

env:
SCRIPTS_NO_INTERACTIVE: 'true'
SCRIPTS_NO_INTERACTIVE: "true"

defaults:
run:
Expand All @@ -24,9 +36,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: '^1.18'
go-version: "^1.18"
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
- name: Build
Expand Down Expand Up @@ -58,22 +70,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: '^1.18'
go-version: "^1.18"
- name: Build
run: |
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "release"
curl --disable --silent --show-error --location --max-time 30 -o mime.types "https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co"
DOCKER_IMAGE="${{ secrets.DOCKER_USER }}/$(make name)" IMAGE_VERSION="$(make version)" ./scripts/release build
- name: Setup Docker
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Setup DockerHub
if: env.DOCKER_USER && env.DOCKER_PASS
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
---
name: CodeQL

permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: write

on:
push:
branches:
Expand All @@ -9,7 +21,7 @@ on:
branches:
- main
schedule:
- cron: '0 0 * * 6'
- cron: "0 0 * * 6"

jobs:
analyze:
Expand All @@ -24,13 +36,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Setup Golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: '^1.18'
go-version: "^1.18"
- name: Build
run: make build
- name: CodeQL
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/herodote.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
---
name: Herodote

permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none

on:
push:
branches:
Expand All @@ -24,4 +36,4 @@ jobs:
HERODOTE_SECRET: ${{ secrets.HERODOTE_SECRET }}
GIT_HOST: github.com
GIT_REPOSITORY: ${{ github.repository }}
SCRIPTS_NO_INTERACTIVE: '1'
SCRIPTS_NO_INTERACTIVE: "1"
18 changes: 15 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
---
name: Release

permissions:
actions: none
checks: none
contents: write
deployments: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none

on:
release:
types:
- released

env:
SCRIPTS_NO_INTERACTIVE: 'true'
SCRIPTS_NO_INTERACTIVE: "true"

defaults:
run:
Expand All @@ -21,9 +33,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: '^1.18'
go-version: "^1.18"
- name: Build
run: make init
- name: Assets
Expand Down

0 comments on commit 3d20ba4

Please sign in to comment.