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

CI: build images in PRs, don't run CI on unused files #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paskal
Copy link
Collaborator

@paskal paskal commented Dec 6, 2024

Previously, CI checked nothing when ran outside of master.

@paskal paskal requested a review from umputun December 6, 2024 23:08
@paskal paskal force-pushed the paskal/improve_ci branch 2 times, most recently from 54d019b to 0b10521 Compare December 6, 2024 23:12
@paskal paskal force-pushed the paskal/improve_ci branch from 0b10521 to 191ba80 Compare December 6, 2024 23:15
Copy link
Owner

@umputun umputun left a comment

Choose a reason for hiding this comment

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

minor things

- name: build base.app image (no push)
if: ${{ github.ref != 'refs/heads/master' }}
run: |
docker build -t ghcr.io/umputun/baseimage/app:latest base.alpine -f base.alpine/Dockerfile
Copy link
Owner

Choose a reason for hiding this comment

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

the tag is confusing, and someday someone will push it and break things. I suggest dropping the tag here.

run: |
docker build -t ghcr.io/umputun/baseimage/app:latest base.alpine -f base.alpine/Dockerfile

- name: build and push base.app image
Copy link
Owner

Choose a reason for hiding this comment

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

maybe change name to "build and push master base.app image"?

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.

2 participants