Skip to content

Commit

Permalink
fix: cd
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Jan 22, 2024
1 parent 3d1c92f commit 469bf46
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Discord notification building state
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: '**MyElectricalData** : Version **${{ needs.informations.outputs.version }}** is in building state...'

- name: Get version
id: informations
run: |
Expand All @@ -38,11 +31,23 @@ jobs:
version: ${{ steps.informations.outputs.version }}
release_type: ${{ steps.informations.outputs.release_type }}

Begin:
needs: [informations]
name: Finish
runs-on: [ ubuntu-latest ]
steps:
- name: Discord notification building state
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: '**MyElectricalData** : Version **${{ needs.informations.outputs.version }}** is in building state...'

#################################################################################################################
# BUILD & PUSH IMAGE
Build-And-Push-Image-AMD64:
needs: [informations]
name: Build & Deploy in docker.io
needs: [Begin]
name: Build & Push AMD64
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
Expand Down Expand Up @@ -97,8 +102,8 @@ jobs:
args: '**MyElectricalData** : **${{ needs.informations.outputs.version }}**/latest AMD64 image version is up to date'

Build-And-Push-Image-ARM64:
needs: [informations]
name: Build & Deploy in docker.io
needs: [Begin]
name: Build & Push ARM64
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
Expand Down Expand Up @@ -153,8 +158,8 @@ jobs:
args: '**MyElectricalData** : **${{ needs.informations.outputs.version }}**/latest ARM64 image version is up to date'

Build-And-Push-Image-ARMv6:
needs: [informations]
name: Build & Deploy in docker.io
needs: [Begin]
name: Build & Push ARMv6
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
Expand Down Expand Up @@ -209,8 +214,8 @@ jobs:
args: '**MyElectricalData** : **${{ needs.informations.outputs.version }}**/latest ARMv6 image version is up to date'

Build-And-Push-Image-ARMv7:
needs: [informations]
name: Build & Deploy in docker.io
needs: [Begin]
name: Build & Push ARMv7
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
Expand Down Expand Up @@ -264,7 +269,6 @@ jobs:
with:
args: '**MyElectricalData** : **${{ needs.informations.outputs.version }}**/latest ARMv7 image version is up to date'


Finish:
needs: [Build-And-Push-Image-AMD64, Build-And-Push-Image-ARM64, Build-And-Push-Image-ARMv6, Build-And-Push-Image-ARMv7]
name: Finish
Expand Down

0 comments on commit 469bf46

Please sign in to comment.