alpha
Login
or
Join now
andri.dk
/
jamstack-example
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/andrioid/jamstack-example. https://andri.dk/blog/2021/deploy-static-websites-anywhere
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
not done, but testing
author
Andri Oskarsson
date
5 years ago
(Apr 30, 2021, 7:17 AM +0200)
commit
648f2796
648f279614ebe68528d081dfc000319f482fe4b7
parent
579b262b
579b262bffbfd10d0545e9ae087ebc990f022add
+19
-12
1 changed file
Expand all
Collapse all
Unified
Split
.github
workflows
deploy-anywhere.yaml
+19
-12
.github/workflows/deploy-anywhere.yaml
View file
Reviewed
···
30
30
# Copy the build assets from the container and cleanup
31
31
- run: CONTAINER_ID=$(docker create ghcr.io/${GITHUB_REPOSITORY}/${IMG_NAME}:latest /bin/sh) && docker cp ${CONTAINER_ID}:/workspace/public . && docker rm ${CONTAINER_ID}
32
32
- run: ls -alh public
33
33
-
# deploy:
34
34
-
# needs: remote-build
35
35
-
# runs-on: ubuntu-latest
36
36
-
# services:
37
37
-
# assets:
38
38
-
# image: ghcr.io/${{ github.repository }}/${{ github.workflow }}
39
39
-
# volumes:
40
40
-
# - /tmp/assets:/workspace
41
41
-
# env:
42
42
-
# IMG_NAME: ${{ github.workflow }}
43
43
-
# steps:
44
44
-
# - run: ls -alh /tmp/assets
33
33
+
- uses: actions/upload-artifact@v2
34
34
+
with:
35
35
+
name: public
36
36
+
path: public/
37
37
+
38
38
+
deploy-spaces:
39
39
+
needs: remote-build
40
40
+
runs-on: ubuntu-latest
41
41
+
env:
42
42
+
RCLONE_CONFIG_SPACES_TYPE: s3
43
43
+
RCLONE_CONFIG_SPACES_ACCESS_KEY_ID: ${{ secrets.SPACES_KEY_ID }}
44
44
+
RCLONE_CONFIG_SPACES_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }}
45
45
+
RCLONE_CONFIG_SPACES_ENDPOINT: fra1.digitaloceanspaces.com # yours may differ
46
46
+
steps:
47
47
+
- uses: NiceLabs/rclone-action@v1
48
48
+
- uses: actions/download-artifact@v2
49
49
+
with:
50
50
+
name: public
51
51
+
- run: ls -alh /public