-
Notifications
You must be signed in to change notification settings - Fork 1
Create automized main and dev branches
#265
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
base: main
Are you sure you want to change the base?
Conversation
|
We now have 4 workflow files:
@jzakotnik Please have a look. |
|
We can push the images to DockerHub, similar to this one: https://hub.docker.com/u/trubudget |
|
@phpai can you have a quick sanity check compared to previous integrations we did? |
release branchmain and dev branches
|
We now have these 4 workflow files:
So the pipeline will roughly be as following: TODOs @jzakotnik
TODOs @maxjmohr
|
|
So I have analyzed https://guide.opencode.de/projekte/spiegeln/#so-funktioniert-die-pull-spiegelung and how to mirror our repo to OpenCode. I have created the file that we have to move in the OpenCode gitlab repo: However, most of the steps require admin access to create tokens and configure settings, so @jzakotnik here in short what we have to do (the guide at the top explains in detail):
Let me know if anything is unclear. |
|
@jzakotnik Instead of the GitLab pull mirror, I have now created this workflow that runs after successful GitHub release creation (so on push to ...
push_to_opencode:
name: Push main to OpenCode Repository
runs-on: ubuntu-latest
needs: release
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "GitHub → OpenCode Bot"
git config user.email "mirror@opencode.de"
- name: Add OpenCode GitLab remote
run: |
git remote add opencode \
https://oauth2:${{ secrets.OPENCODE_GITLAB_PAT }}@gitlab.opencode.de/openkfw/truspace.git
- name: Push main to OpenCode
run: |
git push opencode main:main --forceThis should then sync Fyi: I have kept |
Description
As stated in the corresponding issue, we want to create a stable
releasebranch with automized releases and docker image builds.Type of Change
Please delete options that are not relevant.
Related Issue
Closes #251