Skip to content

Merge pull request #803 from kindlyops/renovate/actions-upload-artifa… #342

Merge pull request #803 from kindlyops/renovate/actions-upload-artifa…

Merge pull request #803 from kindlyops/renovate/actions-upload-artifa… #342

Workflow file for this run

name: Fly Deploy
on:
push:
branches:
- main
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy:
name: Deploy app
environment:
name: production
url: https://vbs.fly.dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Cache Bazel
uses: actions/cache@v3
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
restore-keys: |
${{ runner.os }}-bazel-
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push vbs image to ghcr.io
run: bazel run --define=IMAGE_TAG=experimental.${{ github.ref_name }} --stamp //:push_image
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --image ghcr.io/kindlyops/vbs:experimental.${{ github.ref_name }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_TOKEN }}