mirror of
https://gitea.com/gitea/act_runner.git
synced 2024-12-27 03:18:22 +01:00
use aws runner
This commit is contained in:
parent
8fcd56dc7b
commit
6cc53f16d8
@ -6,7 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: aws
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@ -20,16 +20,11 @@ jobs:
|
||||
with:
|
||||
distribution: goreleaser-pro
|
||||
version: latest
|
||||
args: release --nightly --skip-publish
|
||||
args: release --nightly
|
||||
env:
|
||||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||
- name: publish to s3
|
||||
run: |
|
||||
apt update -y && apt install -y python python3-pip
|
||||
pip install awscli
|
||||
rm dist/artifacts.json dist/metadata.json dist/config.yaml
|
||||
aws s3 sync dist/ s3://${{ secrets.S3_BUCKET }}/act_runner/main/
|
||||
env:
|
||||
AWS_REGION: ${{ secrets.AWS_REGION }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
S3_REGION: ${{ secrets.AWS_REGION }}
|
||||
S3_BUCKET: ${{ secrets.AWS_BUCKET }}
|
||||
|
Loading…
Reference in New Issue
Block a user