From 538321a2d9376900c003f01258700c9f435781f4 Mon Sep 17 00:00:00 2001 From: Eugene Date: Fri, 4 Oct 2024 08:22:10 +0200 Subject: [PATCH] Fix workflow --- .github/workflows/docker-publish.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9db6d42..f40d821 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,12 +1,9 @@ name: Docker -# GitHub Actions workflow for building, tagging, and pushing Docker images, -# with version signing using cosign. - on: push: - branches: [ "main" ] - tags: [ 'v*.*.*' ] + branches: ["main"] + tags: ["v*.*.*"] env: REGISTRY: ghcr.io @@ -25,15 +22,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Install cosign - uses: sigstore/cosign-installer@v3.1.1 - with: - cosign-release: 'v2.1.1' - - - name: Setup Docker buildx - uses: docker/setup-buildx-action@v2 + - name: Setup Docker and cosign + run: | + sudo apt-get update + sudo apt-get install -y buildx cosign - - name: Log into registry ${{ env.REGISTRY }} + - name: Log into registry uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }}