Skip to content
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

Create build workflow #269

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

za419
Copy link
Contributor

@za419 za419 commented Aug 1, 2024

Docker images will be built on any update to a pull request, on any push to main (including merges), on the publication of a new release, or when requested manually.

Docker images will then be pushed for any of those conditions except PRs or manual requests that do not explicitly request pushes.

Images will always be tagged with the short ID of the current commit. Manual runs can set whatever tags they like - Automatic runs will add 'latest', and the name of any tags pointing to the current commit (which is why this runs on release, to get the new tag). All of these tags will be pushed to Docker, should pushing occur.

Merging this PR will fix #252.

This feels unnecessarily verbose, but github apparently sets -e for
these blocks, and working around that is harder and more verbose than
this.
This is very annoying, but once again Github seems to make an ass of me
by helpfully causing everything to parse in the exact way I want it not
to.
Not sure why this is trying to add in extra stuff here...

This commit fixes kenellorando#252.
This is no longer needed because there is no longer an extra -t being
added if there are no tags on release.

It didn't work originally anyway if a commit had multiple tags...
if: env.push == 'true'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These secrets will need to be added to this repository for this bit to work properly.

@kenellorando kenellorando self-requested a review August 1, 2024 04:23
@kenellorando kenellorando self-assigned this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get a GitHub Action to build all service containers
2 participants