Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathon2nd committed Nov 17, 2023
1 parent 73b514e commit cae39fb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/fp-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: FP-Release

on:
release:
Expand All @@ -21,6 +21,10 @@ jobs:
python -m pip install --upgrade pip
pip install tox
- name: Replace default tox.ini with custom version
run: |
cp fp_tox.ini tox.ini
- name: Build image
env:
DOCKER_BUILDKIT: 1
Expand All @@ -41,6 +45,5 @@ jobs:
- name: Push images
run: |
echo "${{ secrets.QUAY_TOKEN }}" | docker login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
docker push ghcr.io/fpm-git/awx-ee:${{ github.event.release.tag_name }}
docker push ghcr.io/fpm-git/awx-ee:latest
26 changes: 26 additions & 0 deletions fp_tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[tox]
minversion = 1.6
skipsdist = True

[testenv]
basepython = python3
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt

[testenv:podman]
passenv = HOME
allowlist_externals =
/bin/bash
podman
commands =
/bin/bash -c "podman rmi ghcr.io/fpm-git/awx-ee:latest || true"
ansible-builder build -v3 -t ghcr.io/fpm-git/awx-ee {posargs}

[testenv:docker]
passenv = HOME,DOCKER_BUILDKIT
allowlist_externals =
/bin/bash
docker
commands =
/bin/bash -c "docker rmi quay.io/ansible/awx-ee:latest || true"
ansible-builder build -v3 -t ghcr.io/fpm-git/awx-ee {posargs} --container-runtime=docker

0 comments on commit cae39fb

Please sign in to comment.