Skip to content

Commit

Permalink
Deployment workflow PS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
seiwan committed Nov 19, 2024
1 parent 088ba7d commit 8048514
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/push-to-bucket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,12 @@ on:
prestashop-version:
required: true
type: string
jobs:
current_date:
name: Get current date
runs-on: ubuntu-latest
if: inputs.triggered == true
outputs:
date: ${{ steps.date.outputs.date }}

steps:
- name: Date
id: date
run: echo "date=$(date -d '+2 hours' +'%Y-%m-%d_%H-%M-%S')" >> "$GITHUB_OUTPUT"

jobs:
push-to-bucket:
name: ${{ inputs.env-upper }} - Create zip file and push to GCP bucket storage
runs-on: ubuntu-latest
environment: ${{ inputs.env-lower }}
needs: [current_date]
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -68,7 +56,7 @@ jobs:
run: |
cd ${{ inputs.repository-name }}
zip -r ../${{ inputs.zip-name }}.zip . -x '*.DS_Store*' '*.git*' '*/.php_cs.*' '*__MACOSX*' '*/node_modules' '*/.npmrc' '*/composer.*' '*/package.*' '*/.editorconfig' '*_dev*' '*test*' '*/tests/*' '*/Test/*' '*/Tests/*' '*/gha-creds-*.json'
- name: Push to GCP bucket storage 🛩️
shell: bash
run: |
Expand Down

0 comments on commit 8048514

Please sign in to comment.