Skip to content

Commit

Permalink
Fix CentOS and Fedora repo deployment (#203)
Browse files Browse the repository at this point in the history
* Pull images silently in testing workflow

* Fix deployment to centos and fedora repositories
  • Loading branch information
marcauberer committed Nov 3, 2021
1 parent 1cf91ac commit 73decdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_combination(comb):
remove(BIN_PATH + "/config.yml")

# Execute Compose Generator with the config file
if system(f"cd {BIN_PATH} && docker compose up -d") != 0:
if system(f"cd {BIN_PATH} && docker compose up -d --quiet-pull") != 0:
sys.exit("Docker failed when generating stack for combination " + str(comb))

if system(f"cd {BIN_PATH} && docker compose down") != 0:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ jobs:
- name: Deploy to CentOS repo
run: |
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --upload-file ./compose-generator_${{ matrix.arch }}.rpm ${{ secrets.NEXUS_URL }}/centos/compose-generator-latest.rpm
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --upload-file ./compose-generator_${{ matrix.arch }}.rpm ${{ secrets.NEXUS_URL }}/centos/${{ steps.get_version.outputs.version }}/compose-generator-${{ matrix.arch }}.rpm
- name: Deploy to Fedora repo
run: |
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --upload-file ./compose-generator_${{ matrix.arch }}.rpm ${{ secrets.NEXUS_URL }}/fedora/compose-generator-latest.rpm
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --upload-file ./compose-generator_${{ matrix.arch }}.rpm ${{ secrets.NEXUS_URL }}/fedora/${{ steps.get_version.outputs.version }}/compose-generator-${{ matrix.arch }}.rpm
#- name: Deploy to Alpine repo
# run: |
# curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./compose-generator_${{ matrix.arch }}.apk" "${{ secrets.NEXUS_URL }}/alpine/compose-generator-latest.apk"
# curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./compose-generator_${{ matrix.arch }}.apk" "${{ secrets.NEXUS_URL }}/alpine/${{ steps.get_version.outputs.version }}/compose-generator-${{ matrix.arch }}.apk"

build-win-installers:
name: Build installers
Expand Down

0 comments on commit 73decdd

Please sign in to comment.