Skip to content

Commit

Permalink
Build and push amd64 and arm64 image
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Feb 27, 2024
1 parent 3fb40ae commit 3d21c59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
pip install -r requirements.txt
- name: Quay login
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
- name: Build image
env:
DOCKER_BUILDKIT: 1
- name: Build and push image
run: |
tox -e docker -- --tag=${{ vars.IMAGE_REGISTRY }}/awx-ee:latest
- name: Push images
run: |
docker push ${{ vars.IMAGE_REGISTRY }}/awx-ee:latest
docker buildx create --name awx-ee-buildx
docker buildx use awx-ee-buildx
ansible-builder create -v3 --output-file=Dockerfile
docker buildx build \
--push \
--platform=linux/amd64,linux/arm64 \
--tag=${{ vars.IMAGE_REGISTRY }}/awx-ee:latest \
context
2 changes: 2 additions & 0 deletions execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ dependencies:
additional_build_steps:
append_base:
- RUN $PYCMD -m pip install -U pip
prepend_builder:
- RUN $PKGMGR install -y cmake gcc gcc-c++ make openssl-devel # needed for building uamqp for azure.azcollection on arm64
append_final:
- COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor
- RUN mkdir -p /var/run/receptor
Expand Down

0 comments on commit 3d21c59

Please sign in to comment.