forked from ansible/receptor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up mutliarch promote image build (TEST)
- Loading branch information
1 parent
bdfa79f
commit 80697b7
Showing
3 changed files
with
29 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,24 +18,26 @@ jobs: | |
run: | | ||
python3 -m pip install twine build | ||
- name: Set official pypi info | ||
run: echo pypi_repo=pypi >> $GITHUB_ENV | ||
if: ${{ github.repository_owner == 'ansible' }} | ||
|
||
- name: Set unofficial pypi info | ||
run: echo pypi_repo=testpypi >> $GITHUB_ENV | ||
if: ${{ github.repository_owner != 'ansible' }} | ||
|
||
- name: Build receptorctl and upload to pypi | ||
run: | | ||
make receptorctl_wheel receptorctl_sdist VERSION=${{ github.event.release.tag_name }} | ||
twine upload \ | ||
-r ${{ env.pypi_repo }} \ | ||
-u ${{ secrets.PYPI_USERNAME }} \ | ||
-p ${{ secrets.PYPI_PASSWORD }} \ | ||
receptorctl/dist/* | ||
# - name: Set official pypi info | ||
# run: echo pypi_repo=pypi >> $GITHUB_ENV | ||
# if: ${{ github.repository_owner == 'ansible' }} | ||
|
||
# - name: Set unofficial pypi info | ||
# run: echo pypi_repo=testpypi >> $GITHUB_ENV | ||
# if: ${{ github.repository_owner != 'ansible' }} | ||
|
||
# - name: Build receptorctl and upload to pypi | ||
# run: | | ||
# make receptorctl_wheel receptorctl_sdist VERSION=${{ github.event.release.tag_name }} | ||
# twine upload \ | ||
# -r ${{ env.pypi_repo }} \ | ||
# -u ${{ secrets.PYPI_USERNAME }} \ | ||
# -p ${{ secrets.PYPI_PASSWORD }} \ | ||
# receptorctl/dist/* | ||
|
||
- name: Log in to GHCR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | ||
run: | | ||
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
@@ -46,9 +48,9 @@ jobs: | |
- name: Copy Image to Quay | ||
uses: akhilerm/[email protected] | ||
with: | ||
src: ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} | ||
src: ghcr.io/sunidhi-gaonkar1/receptor:${{ github.event.release.tag_name }} | ||
dst: | | ||
quay.io/${{ github.repository }}:${{ github.event.release.tag_name }} | ||
quay.io/${{ github.repository }}:latest | ||
quay.io/siddhesh_ghadi/ansible_receptor:${{ github.event.release.tag_name }} | ||
quay.io/siddhesh_ghadi/ansible_receptor:latest | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters