Skip to content

Commit

Permalink
Able to publish on fork
Browse files Browse the repository at this point in the history
For testing build/publish workflow
  • Loading branch information
TheRealHaoLiu committed Feb 26, 2024
1 parent 71158e4 commit 3fb40ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ jobs:
python -m pip install --upgrade pip
pip install tox
- name: Quay login
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=quay.io/ansible/awx-ee:latest
tox -e docker -- --tag=${{ vars.IMAGE_REGISTRY }}/awx-ee:latest
- name: Push images
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
docker push quay.io/ansible/awx-ee:latest
docker push ${{ vars.IMAGE_REGISTRY }}/awx-ee:latest

0 comments on commit 3fb40ae

Please sign in to comment.