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

⚙️ Add CI/CD pipeline to bundle config files #1865

Merged
merged 6 commits into from
Dec 2, 2024

Conversation

racehd
Copy link
Contributor

@racehd racehd commented Dec 2, 2024

The CI/CD pipeline will trigger when changes are pushed to config/_default/**. The pipeline will then package the config files into a zip and make them available at a static URL: https://github.com/nunocoracao/blowfish/releases/download/latest/config-default.zip

For initial config zip, you may need to trigger job manually in Github Actions UI.

Closes #1859

The CI/CD pipeline will trigger when changes are pushed to config/_default/**. The pipeline will then package the config files into a zip and make them available at a static URL: https://github.com/nunocoracao/blowfish/releases/download/latest/config-default.zip
The CI/CD pipeline will trigger when changes are pushed to config/_default/**. The pipeline will then package the config files into a zip and make them available at a static URL: https://github.com/nunocoracao/blowfish/releases/download/latest/config-default.zip
@nunocoracao nunocoracao changed the title Add CI/CD pipeline to bundle config files ⚙️ Add CI/CD pipeline to bundle config files Dec 2, 2024
@nunocoracao nunocoracao merged commit 2bd5ad0 into nunocoracao:main Dec 2, 2024
2 checks passed
@racehd
Copy link
Contributor Author

racehd commented Dec 2, 2024

@nunocoracao Looks like it failed in one of the runs. Im sorry about that, I had tested it on my branch without issue. I see you have since updated it and had it run. If it continues having issues I think we'd need to change it to create a tag if one does not exist. the -f will force the update if the tag already exists. here is what i had come up with before i saw you were already on it

name: Create ZIP
on:
  push:
    branches: ["main"]
    paths:
      - 'config/_default/**'
  workflow_dispatch:

jobs:
  zip:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - run: zip -r config-default.zip config/_default
      - uses: actions/upload-artifact@v3
        with:
          name: config-default
          path: config-default.zip
+      - name: Create tag
+        run: |
+          git tag -f latest
+          git push origin -f latest
      - name: Upload to release
        uses: softprops/action-gh-release@v1
        with:
          files: config-default.zip
          tag_name: latest

Haven't tested that yet, but just some thoughts. If the current pipeline gives issues let me know and I will test it further.

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.

Potentially malicious link in Readme.md
2 participants