Skip to content

Commit

Permalink
Merge pull request #8 from influxdata/devel
Browse files Browse the repository at this point in the history
Bump versions, add devel action
  • Loading branch information
emoruzzi authored Jun 19, 2024
2 parents a1f320f + 4249aab commit ce4cf38
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-devel-latest.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit ce4cf38

Please sign in to comment.