-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
8 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 |
---|---|---|
|
@@ -37,7 +37,12 @@ jobs: | |
|
||
steps: | ||
- name: Checkout ποΈ | ||
uses: actions/[email protected] | ||
uses: actions/checkout@v4 | ||
|
||
- name: Prepare | ||
run: | | ||
platform=${{ matrix.platform }} | ||
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV | ||
- name: Docker meta βοΈ | ||
id: meta | ||
|
@@ -56,24 +61,48 @@ jobs: | |
- name: Image Tags π· | ||
run: echo "${{ steps.meta.outputs.tags }}" | ||
|
||
- name: Image Labels | ||
- name: Image Labels π· | ||
run: echo "${{ steps.meta.outputs.labels }}" | ||
|
||
- name: Install ansible-builder π§° | ||
run: pip install ansible-builder | ||
|
||
- name: Crate Ansible EE container image context π | ||
run: ansible-builder create -v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Build Ansible EE container images π | ||
uses: redhat-actions/buildah-build@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build and push by digest | ||
id: build-push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
context: ./context | ||
containerfiles: | | ||
./context/Containerfile | ||
file: ./context/Containerfile | ||
platforms: ${{ matrix.platform }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
push: true | ||
load: false | ||
|
||
- name: Pushed Image Digest π | ||
run: echo ${{ steps.build-push.outputs.digest }} | ||
|
||
- name: Pushed Image Registry Paths π | ||
run: echo ${{ steps.build-push.outputs.imageid }} | ||
|
||
# - name: Build Ansible EE container images π | ||
# uses: redhat-actions/buildah-build@v2 | ||
# with: | ||
# tags: ${{ steps.meta.outputs.tags }} | ||
# labels: ${{ steps.meta.outputs.labels }} | ||
# context: ./context | ||
# containerfiles: | | ||
# ./context/Containerfile | ||
# platforms: ${{ matrix.platform }} | ||
|
||
|
||
|
||
|