-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.44 KB
/
deploy-s3-docker-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Deploy
on:
workflow_call:
secrets:
AWS_ACCESS_KEY_ID:
required: true
AWS_SECRET_ACCESS_KEY:
required: true
inputs:
artifact-name:
description: 'The name of the deployable artifact to download'
required: true
default: dist
type: string
outputs:
result:
description: 'The result of the deployment'
value: ${{ jobs.deploy.outputs.outcome }}
jobs:
deploy:
outputs:
outcome: ${{ steps.set-output.outputs.steps-result }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get code
uses: actions/download-artifact@v3
with:
name: ${{ inputs.artifact-name }}
- name: List files
run: ls -lrt
- name: Deploy using Js Custom Action
id: deploy
uses: lucassantosandre/reusable-workflows/.github/actions/deploy-s3-docker@main
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
bucket-name: bkt-custom-action-hosting
# bucket-region: ${{ secrets.BUCKET_REGION }}
dist-folder: ./
- name: Set output
id: set-output
run: echo "::set-output name=steps-result::success"
- name: Output Information
run: |
echo "Live URL: ${{ steps.deploy.outputs.website-url }}"