Add hash to css file #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: digitalocean/action-doctl@v2 | |
with: | |
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
- run: doctl registry login --expiry-seconds 600 | |
- shell: bash | |
run: | | |
docker build . -t registry.digitalocean.com/jketcham/website:$GITHUB_SHA | |
docker push registry.digitalocean.com/jketcham/website:$GITHUB_SHA | |
- name: DigitalOcean App Platform deployment | |
uses: digitalocean/[email protected] | |
with: | |
app_name: website | |
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
images: '[ | |
{ | |
"name": "website", | |
"image":{ | |
"registry_type": "DOCR", | |
"repository": "website", | |
"tag": "${{ github.sha }}" | |
} | |
} | |
]' |