Skip to content
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
39 changes: 39 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CD

on:
push:
tags:
- "v*"

permissions:
contents: read
packages: write

jobs:
build-and-push:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod

- name: Install Cosign
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
with:
cosign-release: "v3.0.2"

- name: Install Dependencies
run: |
go mod download
go mod verify

- name: Build and push image
run: make build.push-amd64
env:
IMG_SBOM: "true"
REGISTRY: ghcr.io/containdk
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Go

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down Expand Up @@ -36,7 +36,8 @@ jobs:

- name: Install Dependencies
run: |
go get -v -t -d ./...
go mod download
go mod verify

- name: Test
env:
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/codeql-analysis.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/dependency-update.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/docs.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/gh-workflow-approve.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/json-yaml-validate.yml

This file was deleted.

Loading