Skip to content

Chore: Add backend docker build gh workflow#81

Merged
ItamarMalka merged 12 commits intomainfrom
chore-add-backend-docker-build-stage
Jan 7, 2025
Merged

Chore: Add backend docker build gh workflow#81
ItamarMalka merged 12 commits intomainfrom
chore-add-backend-docker-build-stage

Conversation

@ItamarMalka
Copy link
Contributor

Issue & Steps to Reproduce / Feature Request

We need a gh action to push the built backend image into our ghcr

Solution

Add a docker build workflow that would run after we finish publishing a new version into npm

QA


on:
repository_dispatch:
types: [backstage_release]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please specify the required inputs and their description (that is version, as it seems)

- name: Build and Push Image
uses: docker/build-push-action@v5
with:
context: ../../
Copy link
Collaborator

Choose a reason for hiding this comment

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this would get us to the dockerfile folder but I couldn't test it so it might be wrong

NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} No newline at end of file
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Trigger Docker Build
if: success()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't this conditional redundant? otherwise we need it also for the 'Publish to npm' step

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea sounds like it is redundant 👍
7158621

@ItamarMalka ItamarMalka requested a review from yaronya January 6, 2025 17:48
Comment on lines +30 to +31
yarn tsc:full
yarn build:all
Copy link
Contributor

Choose a reason for hiding this comment

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

# yarn tsc
# yarn build:backend

By the docker file you can do it only for the BE don't need to full
Your call

@ItamarMalka ItamarMalka force-pushed the chore-add-backend-docker-build-stage branch from 32998de to 3329f6a Compare January 7, 2025 10:19
@ItamarMalka ItamarMalka merged commit c65c814 into main Jan 7, 2025
3 checks passed
@ItamarMalka ItamarMalka deleted the chore-add-backend-docker-build-stage branch January 7, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants