-
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.
- Loading branch information
1 parent
a70db2d
commit 6a308d9
Showing
5 changed files
with
51 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,32 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
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: scaleway | ||
region: fr-par | ||
access_key: ${{ secrets.SCW_ACCESS_KEY_ID }} | ||
secret_key: ${{ secrets.SCW_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 |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
.s3cfg | ||
/assets/test-results/* | ||
!/assets/test-results/.gitkeep | ||
.idea |
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