Skip to content

Commit

Permalink
chore: fix ci build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 7, 2023
1 parent 2229d44 commit dfab300
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ on:

env:
REGISTRY: ghcr.io
USER: alwatr

jobs:
build:
if: github.repository_owner == 'alwatr'
if: github.repository_owner == 'Alwatr'

name: Build & Publish Containers
runs-on: ubuntu-latest
Expand Down Expand Up @@ -98,7 +99,7 @@ jobs:
uses: docker/[email protected]
with:
registry: ${{env.REGISTRY}}
username: ${{github.repository_owner}}
username: ${{env.USER}}
password: ${{secrets.GITHUB_TOKEN}}

- name: 🚀 Build and push container image
Expand All @@ -109,8 +110,8 @@ jobs:
context: ./${{matrix.path}}
push: ${{github.event_name != 'pull_request'}}
tags: |
${{env.REGISTRY}}/${{github.repository_owner}}/${{matrix.name}}:${{matrix.version.short}}
${{env.REGISTRY}}/${{github.repository_owner}}/${{matrix.name}}:${{matrix.version.full}}
${{env.REGISTRY}}/${{env.USER}}/${{matrix.name}}:${{matrix.version.short}}
${{env.REGISTRY}}/${{env.USER}}/${{matrix.name}}:${{matrix.version.full}}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: |
Expand All @@ -122,5 +123,5 @@ jobs:
env:
COSIGN_EXPERIMENTAL: 'true'
run: |
cosign sign --yes "${{env.REGISTRY}}/${{github.repository_owner}}/${{matrix.name}}:${{matrix.version.short}}@${{steps.build_and_push.outputs.digest}}"
cosign sign --yes "${{env.REGISTRY}}/${{github.repository_owner}}/${{matrix.name}}:${{matrix.version.full}}@${{steps.build_and_push.outputs.digest}}"
cosign sign --yes "${{env.REGISTRY}}/${{env.USER}}/${{matrix.name}}:${{matrix.version.short}}@${{steps.build_and_push.outputs.digest}}"
cosign sign --yes "${{env.REGISTRY}}/${{env.USER}}/${{matrix.name}}:${{matrix.version.full}}@${{steps.build_and_push.outputs.digest}}"

0 comments on commit dfab300

Please sign in to comment.