fix: login to ghcr, cosign

Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
This commit is contained in:
Matthias Riegler
2023-10-02 23:35:37 +02:00
parent 74c74dead5
commit b1e8a88210
2 changed files with 15 additions and 3 deletions

View File

@@ -42,6 +42,12 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
# Install cosign
- name: Install Cosign

View File

@@ -28,9 +28,9 @@ dockers:
- agent
- bladectl
image_templates:
- ghcr.io/uptime-lab/computeblade-agent/agent:latest
- ghcr.io/uptime-lab/computeblade-agent/agent:{{ .Tag }}
- ghcr.io/uptime-lab/computeblade-agent/agent:v{{ .Major }}
- ghcr.io/uptime-lab/computeblade-agent:latest
- ghcr.io/uptime-lab/computeblade-agent:{{ .Tag }}
- ghcr.io/uptime-lab/computeblade-agent:v{{ .Major }}
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
@@ -41,6 +41,12 @@ dockers:
docker_signs:
- id: oci-bundle-sign
artifacts: all
args:
- "sign"
- --oidc-issuer=https://token.actions.githubusercontent.com
- --upload=false
- "${artifact}"
- --yes
ids:
- oci-bundle