Skip to content

Commit

Permalink
fix: force run workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jpantos committed Jul 4, 2024
1 parent cd5bcc1 commit 4b20fb2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ on:
GPG_PASSPHRASE:
description: 'GPG passphrase'
required: false
outputs:
version:
description: 'Version of the built package'
value: ${{ jobs.build-deb.outputs.version }}

jobs:
build-deb:
name: Build and attach .deb and .whl packages
# TODO: Change ubuntu-20.04 for the ARM public runner
runs-on: ${{ inputs.architecture == 'amd64' && 'ubuntu-latest' || 'ubuntu-20.04' }}
environment: ${{ inputs.environment }}
outputs:
version: ${{ steps.is-signed-build.outputs.built-version }}
permissions:
contents: read
strategy:
Expand Down Expand Up @@ -63,6 +69,7 @@ jobs:
id: is-signed-build
run: |
echo "HAS_SECRETS=$(if [ -n "$GPG_PRIVATE_KEY" ] && [ -n "$GPG_PASSPHRASE" ]; then echo 'true'; else echo 'false'; fi)" >> $GITHUB_OUTPUT
echo "built-version=$(poetry version --short)" >> $GITHUB_OUTPUT
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
Expand Down Expand Up @@ -112,8 +119,6 @@ jobs:
run: |
make debian debian-full
make wheel
env:
PANTOS_SERVICE_NODE_VERSION: ${{ inputs.version }}
shell: sh

- name: Sign package
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
needs: [build]
secrets: 'inherit'
with:
tag: development
tag: ${{ needs.build.outputs.version }}-development
architecture: amd64
environment: main
6 changes: 5 additions & 1 deletion .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
required: false
type: string
default: "amd64"
environment:
description: 'Environment where the secrets are stored'
required: true
type: string
secrets:
DOCKERHUB_USERNAME:
description: 'Docker Hub username'
Expand All @@ -24,7 +28,7 @@ jobs:
publish-docker:
name: Publish docker image for ${{ inputs.tag }}/${{ inputs.architecture }}
environment:
name: dockerhub
name: ${{ inputs.environment }}
url: ${{ steps.set-output-url.outputs.deployment_dockerhub_url }}
runs-on: ${{ inputs.architecture == 'amd64' && 'ubuntu-latest' || 'ubuntu-20.04' }}
permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
with:
tag: ${{ github.event.release.tag_name }}${{ needs.define-environment.outputs.deployment_environment }}
architecture: amd64
environment: dockerhub

build:
name: Build and attach .deb and .whl package
Expand Down

0 comments on commit 4b20fb2

Please sign in to comment.