Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish amd64 and arm64 awx image on release #15053

Merged

Conversation

TheRealHaoLiu
Copy link
Member

@TheRealHaoLiu TheRealHaoLiu commented Apr 1, 2024

SUMMARY
  • change CI to use make awx-kube-build instead of build playbook
  • update staging CI to build and push multiarch awx image
  • update doc to use make awx-kube-build to build awx image
  • remove build playbook (no longer used)

Resolves #14643
Resolves #15079

ISSUE TYPE
  • New or Enhanced Feature
COMPONENT NAME
  • Other
AWX VERSION

ADDITIONAL INFORMATION

@kurokobo
Copy link
Contributor

kurokobo commented Apr 2, 2024

Hi, thanks for working on this!
Are there any actual logs for this GHA and available (testable) images built by it?

@TheRealHaoLiu
Copy link
Member Author

I'm working on getting this working on my fork so i can test it...

- change CI to use `make awx-kube-build` instead of build playbook
- update staging CI to build and push multiarch awx image
- update doc to use `make awx-kube-build` to build awx image
- remove build playbook (no longer used)
@TheRealHaoLiu TheRealHaoLiu force-pushed the multiarch-awx-release-image branch from b18c0ef to 10e41c2 Compare April 2, 2024 19:16
@TheRealHaoLiu
Copy link
Member Author

TheRealHaoLiu commented Apr 3, 2024

if anyone want to watch the paint dry here's where im rehearsing the staging process...
https://github.com/TheRealHaoLiu/awx/actions/workflows/stage.yml

@TheRealHaoLiu
Copy link
Member Author

#38 [auth] therealhaoliu/awx-operator:pull,push token for ghcr.io
#38 DONE 0.0s
#37 exporting to image
#37 pushing layers 0.3s done
#37 ERROR: failed to push ghcr.io/therealhaoliu/awx-operator:100.1.2: unexpected status from POST request to https://ghcr.io/v2/therealhaoliu/awx-operator/blobs/uploads/: 403 Forbidden
------
 > exporting to image:
------
ERROR: failed to solve: failed to push ghcr.io/therealhaoliu/awx-operator:100.1.2: unexpected status from POST request to https://ghcr.io/v2/therealhaoliu/awx-operator/blobs/uploads/: 403 Forbidden
make: [Makefile:121: docker-buildx] Error 1 (ignored)

latest failure...

on my fork im not able to push to ghcr.io/therealhaoliu/awx-operator for some reason

@TheRealHaoLiu
Copy link
Member Author

in the same workflow im able to push ghcr.io/therealhaoliu/awx and ghcr.io/therealhaoliu/awx-ee

@kurokobo
Copy link
Contributor

kurokobo commented Apr 4, 2024

@TheRealHaoLiu

on my fork im not able to push to ghcr.io/therealhaoliu/awx-operator for some reason

Thanks, maybe you have to assign Write perm to therealhaoliu/awx on "Package settings" on therealhaoliu/awx-operator (maybe here: https://github.com/users/therealhaoliu/packages/container/awx-operator/settings)?

@TheRealHaoLiu
Copy link
Member Author

ur absolutely right @kurokobo 🥂

@TheRealHaoLiu
Copy link
Member Author

14th time is the charm... the latest staging worked https://github.com/TheRealHaoLiu/awx/actions/runs/8560172659/job/23458535766
NOTE: create draft release of AWX operator failed bc i didnt give AWX_OPERATOR_RELEASE_TOKEN it should be fine on AWX repo

NOTE: stage workflow does take significantly longer than before due to cross platform build increase from 30 min to 1 hr

here's the images that the stage workflow produced

  • ghcr.io/therealhaoliu/awx:100.100.101
  • ghcr.io/therealhaoliu/awx-operator:100.100.101
  • ghcr.io/therealhaoliu/awx-ee:100.100.101

tested locally on microshift it works

@kurokobo
Copy link
Contributor

kurokobo commented Apr 9, 2024

@zaki-lknr
If you are interested in this, you can test above images before oficial releases😃

@TheRealHaoLiu
Copy link
Member Author

apiVersion: awx.ansible.com/v1beta1
kind: AWX
  name: awx
  namespace: awx
spec:
  control_plane_ee_image: ghcr.io/therealhaoliu/awx-ee:100.100.101
  ee_images:
  - image: quay.io/ansible/awx-ee:latest
    name: AWX EE (latest)
  - image: ghcr.io/therealhaoliu/awx-ee:100.100.101
    name: AWX EE (100.100.101)
  image: ghcr.io/therealhaoliu/awx
  image_version: 100.100.101
  init_container_image: ghcr.io/therealhaoliu/awx-ee
  init_container_image_version: 100.100.101

@TheRealHaoLiu TheRealHaoLiu merged commit 86204cf into ansible:devel Apr 9, 2024
22 checks passed
@TheRealHaoLiu TheRealHaoLiu deleted the multiarch-awx-release-image branch April 9, 2024 13:50
TheRealHaoLiu added a commit to TheRealHaoLiu/awx that referenced this pull request Apr 9, 2024
shanemcd pushed a commit to TheRealHaoLiu/awx that referenced this pull request Apr 10, 2024
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
* Stage multi-arch awx image

- change CI to use `make awx-kube-build` instead of build playbook
- update staging CI to build and push multiarch awx image
- update doc to use `make awx-kube-build` to build awx image
- remove build playbook (no longer used)
djyasin pushed a commit to djyasin/awx that referenced this pull request Nov 11, 2024
* Stage multi-arch awx image

- change CI to use `make awx-kube-build` instead of build playbook
- update staging CI to build and push multiarch awx image
- update doc to use `make awx-kube-build` to build awx image
- remove build playbook (no longer used)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ARM64 system - AWX image pull failing ARM64 images built and Available on AWX repository
4 participants