Skip to content

Try adding netaddr a different way #5

Try adding netaddr a different way

Try adding netaddr a different way #5

Workflow file for this run

name: FP-Release
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-20.04
name: Release
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: |
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: Insert netaddr into execution-environment.yml
run: |
awk '/python: \|$/{print;print " netaddr";next}1' execution-environment.yml > temp.yml && mv temp.yml execution-environment.yml
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e docker -- --tag=ghcr.io/fpm-git/awx-ee:${{ github.event.release.tag_name }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Apply latest tag
run: |
docker tag ghcr.io/fpm-git/awx-ee:${{ github.event.release.tag_name }} ghcr.io/fpm-git/awx-ee:latest
- name: Push images
run: |
docker push ghcr.io/fpm-git/awx-ee:${{ github.event.release.tag_name }}
docker push ghcr.io/fpm-git/awx-ee:latest