Skip to content

Commit

Permalink
feat(workflow): update devel workflow to build multi-arch containers.
Browse files Browse the repository at this point in the history
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
jon-nfc committed Jan 8, 2024
1 parent ff16db8 commit 96fcd27
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/devel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 96fcd27

Please sign in to comment.