Skip to content

Commit

Permalink
Make sure user's name is lowercase
Browse files Browse the repository at this point in the history
Signed-off-by: Salvatore Daniele <[email protected]>
  • Loading branch information
SalDaniele committed Oct 18, 2024
1 parent 3670104 commit f5aec2c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,29 @@ on:

jobs:
build-and-push:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
run: |
docker buildx create --use
- name: Convert GitHub repository owner to lowercase
id: lowercase_owner
run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Log in to GitHub Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and Push Multiarch Image to ghcr.io
run: |
docker buildx build \
--file ./Containerfile \
--platform linux/arm64,linux/amd64 \
--tag ghcr.io/${{ github.repository_owner }}/ocp-traffic-flow-tests:pr_test \
--tag ghcr.io/${{ env.owner }}/ocp-traffic-flow-tests:pr_test \
--push \
.

0 comments on commit f5aec2c

Please sign in to comment.