Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only push the production images for main repo #14261

Merged

Conversation

AlanCoding
Copy link
Member

SUMMARY

Forks were having errors pushing the /awx image, as they should! Not just anything should be able to push tags to that. This adds a restriction to only do that for the AWX repo. There is concern whether this will work correctly for PRs... lucky for us this is a PR.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API


- name: Push AWX k8s image, only for upstream and feature branches
run: docker push ghcr.io/${OWNER_LC}/awx:${GITHUB_REF##*/}
if: github.repository == 'ansible/awx'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you relax this a bit? See

if: endsWith(github.repository, '/awx')

@AlanCoding AlanCoding force-pushed the will_the_real_prod_please_stand_up branch from 6fa51c3 to 15bb5df Compare July 19, 2023 13:19
@AlanCoding AlanCoding marked this pull request as ready for review July 19, 2023 13:23
@AlanCoding AlanCoding merged commit ea455df into ansible:devel Jul 19, 2023
14 checks passed
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants