-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SITEOPS-1420] add qemu setup for multiarch builds
- Loading branch information
1 parent
3fa28e3
commit 543eb70
Showing
3 changed files
with
19 additions
and
15 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 |
---|---|---|
|
@@ -7,9 +7,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
python-version: '3.11' | ||
- uses: pre-commit/[email protected] | ||
tagging: | ||
name: "Tagging (dry-run)" | ||
|
@@ -21,7 +21,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: Bump version and push tag | ||
id: tag_version | ||
uses: mathieudutour/github-tag-action@v6.1 | ||
uses: mathieudutour/github-tag-action@v6.2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
dry_run: true | ||
|
@@ -30,7 +30,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: arduino/setup-task@v1 | ||
- uses: arduino/setup-task@v2 | ||
- name: Lint and tests | ||
run: | | ||
task test |
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 |
---|---|---|
|
@@ -7,9 +7,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
python-version: '3.11' | ||
- uses: pre-commit/[email protected] | ||
tagging: | ||
name: "Tagging" | ||
|
@@ -21,7 +21,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: Bump version and push tag | ||
id: tag_version | ||
uses: mathieudutour/github-tag-action@v6.1 | ||
uses: mathieudutour/github-tag-action@v6.2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: | | ||
|
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 |
---|---|---|
|
@@ -173,7 +173,7 @@ inputs: | |
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
|
@@ -192,6 +192,10 @@ runs: | |
final_platforms_list=$(echo $platform_list_temp | tr -d ' ' | tr ',' '\n' | sort | uniq | paste -sd ',' -) | ||
echo "image_platforms=${final_platforms_list}" >> $GITHUB_OUTPUT | ||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
@@ -201,23 +205,23 @@ runs: | |
|
||
# Login to registries | ||
- name: Login to Artifactory | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
if: ${{inputs.artifactory_username != '' && inputs.artifactory_password != '' }} | ||
with: | ||
registry: ${{ inputs.artifactory_url }} | ||
username: ${{ inputs.artifactory_username }} | ||
password: ${{ inputs.artifactory_password }} | ||
|
||
- name: Login to Quay | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
if: ${{inputs.quay_username != '' && inputs.quay_password != '' }} | ||
with: | ||
registry: quay.io | ||
username: ${{ inputs.quay_username }} | ||
password: ${{ inputs.quay_password }} | ||
|
||
- name: Login to GAR | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
if: ${{inputs.gar_password != '' }} | ||
with: | ||
registry: ${{ inputs.gar_prefix }} | ||
|
@@ -235,7 +239,7 @@ runs: | |
- name: Bump container version and create new github tag | ||
if: ${{ ! inputs.external_tag }} | ||
id: bump_version | ||
uses: mathieudutour/github-tag-action@v1.0 | ||
uses: mathieudutour/github-tag-action@v6.2 | ||
with: | ||
github_token: ${{ inputs.github_token }} | ||
tag_prefix: container/${{ inputs.image_name }}- | ||
|
@@ -286,7 +290,7 @@ runs: | |
type=raw,value=${{ inputs.external_tag || steps.image_tag.outputs.ver }} | ||
- name: Build container | ||
uses: docker/build-push-action@v4 | ||
uses: docker/build-push-action@v5 | ||
if: ${{ inputs.build == 'true' }} | ||
with: | ||
context: ${{ inputs.context_path }} | ||
|
@@ -323,7 +327,7 @@ runs: | |
policy-list: ${{ inputs.policy-list }} | ||
|
||
- name: Push container | ||
uses: docker/build-push-action@v4 | ||
uses: docker/build-push-action@v5 | ||
if: ${{ inputs.push == 'true' && inputs.dry_run != 'true' }} | ||
with: | ||
context: ${{ inputs.context_path }} | ||
|
@@ -336,7 +340,7 @@ runs: | |
provenance: ${{ inputs.provenance }} | ||
|
||
- name: Save image to file | ||
uses: docker/build-push-action@v3 | ||
uses: docker/build-push-action@v5 | ||
if: ${{ inputs.upload_artifact == 'true' && inputs.build == 'true' }} | ||
with: | ||
context: ${{ inputs.context_path }} | ||
|