-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate image and server setup in multiple checks #14422
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a05d03d
Consolidate image and server setup in multiple checks
AlanCoding 5c9628d
Fix token parameter and remove outdated comments
AlanCoding 2281725
Rename image action, nest under run_awx_devel
AlanCoding 23f2102
Move code back for git diff
AlanCoding 73234aa
Fix indent
AlanCoding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@relrod This
log-filename
is an input to the other action (upload_awx_devel_logs), not this action. It seems to have not failed anything, but this seemed to be a bug.I could, however, see the argument for having
run_awx_devel
callupload_awx_devel_logs
in the same way that I'm now having it call the image build action. In that case, it would be an input, and we also would be more compact by never callingupload_awx_devel_logs
But that would require adding it as something like a "finalizer" step, which needs research.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it's not a thing actions/runner#1478
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that is what I really wanted to do originally, but there's no way when using a composite action. :(