diff --git a/.github/workflows/devel.yaml b/.github/workflows/devel.yaml index 3917ed4bf8..08d566a75e 100644 --- a/.github/workflows/devel.yaml +++ b/.github/workflows/devel.yaml @@ -13,15 +13,28 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Build Image - run: | - IMG=awx-operator:devel make docker-build + - name: Log into registry ghcr.io + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - - name: Push To Quay - uses: redhat-actions/push-to-registry@v2.1.1 + - name: Log into registry quay.io + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 with: - image: awx-operator - tags: devel registry: quay.io/ansible/ username: ${{ secrets.QUAY_USER }} password: ${{ secrets.QUAY_TOKEN }} + + + - name: Build and Store Image @ghcr + run: | + IMG=ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ github.sha }} make docker-buildx + + + - name: Publish Image to quay.io/ansible/awx-operator:devel + run: | + docker buildx imagetools create ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ github.sha }} --tag quay.io/ansible/${{ github.repository }}:devel +