mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
31 lines
842 B
YAML
31 lines
842 B
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: 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.base_ref }}
|
|
|
|
- name: Build image
|
|
run: |
|
|
DEV_DOCKER_TAG_BASE=ghcr.io/${{ github.repository_owner }} COMPOSE_TAG=${{ github.base_ref }} make docker-compose-build
|
|
|
|
- name: Push image
|
|
run: |
|
|
docker push ghcr.io/${{ github.repository_owner }}/awx_devel:${{ github.base_ref }}
|