forked from ansible/awx
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate image and server setup in several checks (ansible#14477)
- Loading branch information
1 parent
79e2963
commit bbf7c0b
Showing
6 changed files
with
48 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Setup images for AWX | ||
description: Builds new awx_devel image | ||
inputs: | ||
github-token: | ||
description: GitHub Token for registry access | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Get python version from Makefile | ||
shell: bash | ||
run: echo py_version=`make PYTHON_VERSION` >> $GITHUB_ENV | ||
|
||
- name: Log in to registry | ||
shell: bash | ||
run: | | ||
echo "${{ inputs.github-token }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
- name: Pre-pull latest devel image to warm cache | ||
shell: bash | ||
run: docker pull ghcr.io/${{ github.repository_owner }}/awx_devel:${{ github.base_ref }} | ||
|
||
- name: Build image for current source checkout | ||
shell: bash | ||
run: | | ||
DEV_DOCKER_TAG_BASE=ghcr.io/${{ github.repository_owner }} \ | ||
COMPOSE_TAG=${{ github.base_ref }} \ | ||
make docker-compose-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters