Skip to content

Commit

Permalink
Replace all LC_OWNER with github.repository_owner.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrizka committed Dec 24, 2024
1 parent 9b21944 commit aff391d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 40 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/full-rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,11 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: lowercase owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/mucoll-dummy
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/mucoll-dummy
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
Expand All @@ -105,8 +100,8 @@ jobs:
file: ./${{matrix.os.dir}}/Dockerfile-minimal
build-args: |
VERSION=${{ steps.meta.outputs.version }}
REPOSITORY=${{ env.REGISTRY }}/${{env.OWNER_LC}}
tags: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/${{ env.IMAGE_NAME}}:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
REPOSITORY=${{ env.REGISTRY }}/${{ github.repository_owner }}
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME}}:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
labels: ${{ steps.meta.outputs.labels }}
build-sim:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -139,16 +134,11 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: lowercase owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/mucoll-dummy
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/mucoll-dummy
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
Expand All @@ -158,7 +148,7 @@ jobs:
file: ./${{matrix.os.dir}}/Dockerfile-sim
build-args: |
VERSION=${{ steps.meta.outputs.version }}
REPOSITORY=${{ env.REGISTRY }}/${{env.OWNER_LC}}
REPOSITORY=${{ env.REGISTRY }}/${{ github.repository_owner }}
GITHUB_REPOSITORY=${{ github.repository }}
MUCOLL_SHA=${{ github.sha }}
tags: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/mucoll-sim:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/mucoll-sim:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
22 changes: 6 additions & 16 deletions .github/workflows/minimal-rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,11 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: lowercase owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/mucoll-dummy
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/mucoll-dummy
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
Expand All @@ -68,8 +63,8 @@ jobs:
file: ./${{matrix.os.dir}}/Dockerfile-minimal
build-args: |
VERSION=${{ steps.meta.outputs.version }}
REPOSITORY=${{ env.REGISTRY }}/${{env.OWNER_LC}}
tags: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/${{ env.IMAGE_NAME}}:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
REPOSITORY=${{ env.REGISTRY }}/${{ github.repository_owner }}
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME}}:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
labels: ${{ steps.meta.outputs.labels }}
build-sim:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -102,16 +97,11 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: lowercase owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/mucoll-dummy
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/mucoll-dummy
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
Expand All @@ -121,7 +111,7 @@ jobs:
file: ./${{matrix.os.dir}}/Dockerfile-sim
build-args: |
VERSION=${{ steps.meta.outputs.version }}
REPOSITORY=${{ env.REGISTRY }}/${{env.OWNER_LC}}
REPOSITORY=${{ env.REGISTRY }}/${{ github.repository_owner }}
GITHUB_REPOSITORY=${{ github.repository }}
MUCOLL_SHA=${{ github.sha }}
tags: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/mucoll-sim:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/mucoll-sim:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
11 changes: 3 additions & 8 deletions .github/workflows/mucoll-rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,11 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: lowercase owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/mucoll-dummy
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/mucoll-dummy
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
Expand All @@ -71,7 +66,7 @@ jobs:
file: ./${{matrix.os.dir}}/Dockerfile-sim
build-args: |
VERSION=${{ steps.meta.outputs.version }}
REPOSITORY=${{ env.REGISTRY }}/${{env.OWNER_LC}}
REPOSITORY=${{ env.REGISTRY }}/${{ github.repository_owner }}
GITHUB_REPOSITORY=${{ github.repository }}
MUCOLL_SHA=${{ github.sha }}
tags: ${{ env.REGISTRY }}/${{env.OWNER_LC}}/${{ env.IMAGE_NAME}}:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME}}:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}

0 comments on commit aff391d

Please sign in to comment.