ci/cd - various fixes for push workflows

This commit is contained in:
florian 2023-05-01 19:57:00 +02:00
parent ba7422218d
commit 5c01bd3f74
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
3 changed files with 9 additions and 1 deletions

View File

@ -247,7 +247,7 @@ jobs:
uses: ./.github/workflows/linux-build.yml
with:
RELEASE: beta
LINUX: rhel
LINUX: el
PACKAGE: rpm
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

View File

@ -29,6 +29,8 @@ jobs:
runs-on: ubuntu-latest
steps:
# Prepare
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:

View File

@ -46,9 +46,15 @@ jobs:
run: gem install package_cloud
# Download packages
- uses: actions/download-artifact@v3
if: inputs.LINUX != 'el'
with:
name: package-${{ inputs.LINUX }}
path: /tmp/${{ inputs.LINUX }}
- uses: actions/download-artifact@v3
if: inputs.LINUX == 'el'
with:
name: package-rhel
path: /tmp/${{ inputs.LINUX }}
# Remove existing packages
- name: Remove existing package
run: package_cloud yank bunkerity/${{ inputs.REPO }}/${{ inputs.LINUX }}/${{ inputs.VERSION }} bunkerweb${{ inputs.SEPARATOR }}${{ inputs.BW_VERSION }}${{ inputs.SEPARATOR }}${{ inputs.SUFFIX }}.${{ inputs.PACKAGE }}