diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bc04a7d..3d780cc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ on: jobs: check-requirements: name: Check Requirements - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Set Version Tag run: echo "API_TAG=$(echo $GITHUB_REF | awk -F '/' '{print $NF}')" >> $GITHUB_ENV @@ -17,7 +17,7 @@ jobs: build-image: name: Build Image - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 needs: check-requirements steps: - uses: actions/checkout@v3 @@ -35,7 +35,7 @@ jobs: update-readme: name: Update Readme - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Update Docker Hub Description @@ -47,7 +47,7 @@ jobs: deploy-fly: name: Deploy Fly.io - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 needs: [check-requirements, build-image] steps: - uses: actions/checkout@v3 @@ -57,4 +57,15 @@ jobs: - name: Deploy API on Fly.io run: flyctl deploy --app steamcmd --image steamcmd/api:${{ env.API_VERSION }} -e VERSION=${{ env.API_VERSION }} env: - FLY_API_TOKEN: ${{ secrets.FLY_ACCESS_TOKEN }} \ No newline at end of file + FLY_API_TOKEN: ${{ secrets.FLY_ACCESS_TOKEN }} + + deploy-render: + name: Deploy Render.com + runs-on: ubuntu-22.04 + needs: [check-requirements, build-image] + steps: + - uses: actions/checkout@v3 + - name: Parse API Version + run: echo "API_VERSION=$(echo $GITHUB_REF | awk -F '/' '{print $NF}' | cut -c 2-)" >> $GITHUB_ENV + - name: Deploy API on Render.com + run: curl https://api.render.com/deploy/${{ secrets.RENDER_SERVICE_ID }}?key=${{ secrets.RENDER_API_KEY }}&imgURL=docker.io%2Fsteamcmd%2Fapi%40${{ env.API_VERSION }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e9055d5..ea2a9af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ on: jobs: test-image: name: Test Image - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Build Image @@ -19,7 +19,7 @@ jobs: python-lint: name: Python Lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - uses: ricardochaves/python-lint@v1.3.0 diff --git a/README.md b/README.md index d61b94c..8ba8923 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ # SteamCMD API Read-only API interface for steamcmd app_info. Updates of this code are -automatically deployed on Fly.io via [Github Actions](https://github.com/steamcmd/api/actions) +automatically deployed via [Github Actions](https://github.com/steamcmd/api/actions) when a new version has been created on Github. ## Self-hosting