-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from laithrafid/newprovider
digitalocean provider support
- Loading branch information
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
use_s3cmd: | ||
runs-on: ubuntu-latest | ||
|
||
name: Use S3cmd for digitalocean | ||
steps: | ||
- name: Set up S3cmd cli tool | ||
uses: s3-actions/s3cmd@main | ||
with: | ||
provider: digitalocean | ||
region: 'NYC3' | ||
access_key: ${{ secrets.SPACES_ACCESS_KEY_ID }} | ||
secret_key: ${{ secrets.SPACES_SECRET_ACCESS_KEY }} | ||
|
||
- name: Interact with object storage | ||
run: | | ||
buck="github-action-${{ github.run_id }}" | ||
mkdir example | ||
s3cmd mb s3://$buck | ||
echo 'foo' >> example/bar | ||
s3cmd put example/bar s3://$buck | ||
mkdir -p example/baz/bar | ||
echo 'fizz' >> example/baz/bar/faz | ||
sleep 10 | ||
s3cmd sync --recursive --acl-public example s3://$buck | ||
sleep 10 | ||
s3cmd rm -r --force s3://$buck | ||
sleep 10 | ||
s3cmd rb s3://$buck |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ inputs: | |
required: true | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' | ||
main: 'dist/index.js' |
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
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
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