mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Modifying workflows to install python for make commands Squashing CI tasks to remove repeated steps Modifying pre-commit.sh to not fail if there are no python file changes
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
---
|
|
name: Push Development Image
|
|
on:
|
|
push:
|
|
branches:
|
|
- devel
|
|
jobs:
|
|
push:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
packages: write
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Get python version from Makefile
|
|
run: echo py_version=`make PYTHON_VERSION` >> $GITHUB_ENV
|
|
|
|
- name: Install python ${{ env.py_version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ env.py_version }}
|
|
|
|
- name: Log in to registry
|
|
run: |
|
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
|
|
|
- name: Pre-pull image to warm build cache
|
|
run: |
|
|
docker pull ghcr.io/${{ github.repository_owner }}/awx_devel:${GITHUB_REF##*/}
|
|
|
|
- name: Build image
|
|
run: |
|
|
DEV_DOCKER_TAG_BASE=ghcr.io/${{ github.repository_owner }} COMPOSE_TAG=${GITHUB_REF##*/} make docker-compose-build
|
|
|
|
- name: Push image
|
|
run: |
|
|
docker push ghcr.io/${{ github.repository_owner }}/awx_devel:${GITHUB_REF##*/}
|