From 4249aabd1409ecbe54ca8c6932eae53e1717d272 Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 19 Jun 2024 13:22:59 -0600 Subject: [PATCH] Bump versions, add devel action Upgrade ansible-core to 2.16.7 Upgrade ansible-runner to 2.4.0 Upgrade receptor to 1.4.8 Add GH action to build 'devel' tag --- .github/workflows/build-devel-latest.yml | 39 ++++++++++++++++++++++++ execution-environment.yml | 6 ++-- 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build-devel-latest.yml diff --git a/.github/workflows/build-devel-latest.yml b/.github/workflows/build-devel-latest.yml new file mode 100644 index 0000000..2d13886 --- /dev/null +++ b/.github/workflows/build-devel-latest.yml @@ -0,0 +1,39 @@ +name: Build and Push latest image + +on: + push: + # build and push anytime commits are merged to main + branches: + - devel + +jobs: + build_and_push_latest: + runs-on: ubuntu-22.04 + name: Build and push latest tag from main on new commits + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools + 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 and push image + run: | + 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 }}:devel \ + context + diff --git a/execution-environment.yml b/execution-environment.yml index 86de765..266272e 100644 --- a/execution-environment.yml +++ b/execution-environment.yml @@ -6,9 +6,9 @@ images: dependencies: ansible_core: # A minimum of 2.15 is required to get ansible-inventory --limit option - package_pip: ansible-core==2.16.4 + package_pip: ansible-core==2.16.7 ansible_runner: - package_pip: ansible-runner==2.3.5 + package_pip: ansible-runner==2.4.0 python_interpreter: package_system: python3.12 python_path: "/usr/bin/python3.12" @@ -67,6 +67,6 @@ additional_build_steps: - RUN $PYCMD -m pip install -U pip - RUN unlink /usr/bin/python3 && ln -s /usr/bin/python3.12 /usr/bin/python3 append_final: - - COPY --from=quay.io/ansible/receptor:v1.4.4 /usr/bin/receptor /usr/bin/receptor + - COPY --from=quay.io/ansible/receptor:v1.4.8 /usr/bin/receptor /usr/bin/receptor - RUN mkdir -p /var/run/receptor - RUN git lfs install --system