-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflow): update devel workflow to build multi-arch containers.
1. builds containers and stores @ghcr with tag that is git commit. 2. pushes the image to quay.io/ansible with tag devel. Issue #31
- Loading branch information
Showing
1 changed file
with
20 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
- 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 | ||