chore(deps): lock file maintenance #347
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
name: Main Branch Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docker_push: | |
name: "Push docker image" | |
uses: "philipcristiano/workflows/.github/workflows/docker-build-push.yml@main" | |
needs: [flake, rust, database] | |
with: | |
repository: ${{ github.repository }} | |
timeout: 25 | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
database: | |
services: | |
postgres: | |
image: postgres:17 | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: et | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install Nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- uses: workflow/[email protected] | |
with: | |
flakes-from-devshell: true | |
script: | | |
export SQLX_OFFLINE=true | |
cargo build --bin et-migrate | |
cargo run --bin et-migrate -- --config-file="config.github-actions.toml" migrate | |
rust: | |
uses: "philipcristiano/workflows/.github/workflows/rust_with_postgres.yml@main" | |
with: | |
db_name: et | |
db_user: et | |
db_password: et | |
setup_script: | | |
curl -sL https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.1/tailwindcss-linux-x64 -o tailwindcss | |
chmod +x tailwindcss | |
mv tailwindcss /usr/local/bin | |
release-please: | |
needs: [flake, rust, database] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
with: | |
token: ${{ secrets.REPO_TOKEN }} | |
release-type: rust | |
flake: | |
uses: "philipcristiano/workflows/.github/workflows/nix.yml@main" | |
with: | |
flakes-from-devshell: true | |
script: | | |
export SQLX_OFFLINE=true | |
cargo build |