Skip to content

Commit fdcbbdf

Browse files
author
Trustable User
committed
using straight apache secrets
1 parent 8f883db commit fdcbbdf

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/image.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ jobs:
4545
if: ${{ github.event_name != 'pull_request' }}
4646
run: |
4747
echo "IMG_TAG=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
48-
- name: Assign Custom Image Name
49-
if: ${{ github.repository_owner != 'apache'}}
50-
run: |
51-
echo "MY_OPERATOR_IMAGE=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}" >> "$GITHUB_ENV"
52-
echo "IMAGE_REGISTRY=ghcr.io" >> "$GITHUB_ENV"
48+
#- name: Assign Custom Image Name
49+
# if: ${{ github.repository_owner != 'apache'}}
50+
# run: |
51+
# echo "MY_OPERATOR_IMAGE=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}" >> "$GITHUB_ENV"
52+
# echo "IMAGE_REGISTRY=ghcr.io" >> "$GITHUB_ENV"
5353
- name: Set up Python 3.12
5454
uses: actions/setup-python@v4
5555
with:
@@ -74,14 +74,12 @@ jobs:
7474
#- name: Integration Test
7575
# run: task itest
7676
# continue-on-error: false
77-
- name: Show Image Registry
78-
run: echo "IMAGE_REGISTRY=${{ env.IMAGE_REGISTRY }}"
7977
- name: Registry login
8078
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
8179
with:
82-
registry: ${{ env.IMAGE_REGISTRY || 'registry.hub.docker.com' }}
83-
username: ${{ env.IMAGE_REGISTRY == 'ghcr.io' && github.repository_owner || secrets.DOCKERHUB_USER }}
84-
password: ${{ env.IMAGE_REGISTRY == 'ghcr.io' && secrets.GITHUB_TOKEN || secrets.DOCKERHUB_TOKEN }}
80+
registry: 'docker.io'
81+
username: ${{ secrets.DOCKERHUB_USER }}
82+
password: ${{ secrets.DOCKERHUB_TOKEN }}
8583
- name: Set up QEMU
8684
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
8785
with:

0 commit comments

Comments
 (0)