Skip to content

Commit

Permalink
[SITEOPS-1420] add qemu setup for multiarch builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorley-sysdig committed Apr 10, 2024
1 parent 3fa28e3 commit 543eb70
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/tag_and_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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: |
Expand Down
20 changes: 12 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}-
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 543eb70

Please sign in to comment.