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 0645db2
Show file tree
Hide file tree
Showing 2 changed files with 15 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
5 changes: 5 additions & 0 deletions execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ dependencies:
python-unversioned-command [platform:rpm]
unzip [platform:rpm]
podman-remote [platform:rpm]
cmake [platform:rpm compile]
gcc [platform:rpm compile]
gcc-c++ [platform:rpm compile]
make [platform:rpm compile]
openssl-devel [platform:rpm compile]
python: |
git+https://github.com/ansible/ansible-sign
ncclient
Expand Down

0 comments on commit 0645db2

Please sign in to comment.