Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u authored Aug 24, 2024
1 parent 0b74bdf commit 3781acc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ jobs:
docker build -t huranit-server .
docker tag huranit-server hysong4u/huranit-server:latest
docker push hysong4u/huranit-server:latest
- name: Get timestamp
uses: gerred/actions/current-time@master
id: current-time

- name: Run string replace
uses: frabert/replace-string-action@master
id: format-time
with:
pattern: '[:\.]+'
string: "${{ steps.current-time.outputs.time }}"
replace-with: '-'
flags: 'g'

- name: Deploy to EC2
env:
Expand Down

0 comments on commit 3781acc

Please sign in to comment.