Skip to content

Setup Atlas

Actions

About

Installs a specific version of Atlas
v0.5
Latest
Star (13)

setup-action

A GitHub Action for installing Atlas.

See the docs for other Atlas GitHub Actions for operations such as linting, syncing, or deploying your migration directory.

Usage

Add .github/workflows/deploy-schema.yaml to your repo with the following contents:

name: Deploy schema changes
run-name: I'm using Atlas 🚀
on: [push]
jobs:
  use-atlas:
    runs-on: ubuntu-latest
    steps:
      - uses: ariga/setup-atlas@v0
      - run: atlas version
      # - run: atlas schema apply ... 

Inputs

Version

By default, the latest version of Atlas is being used. If you want to lock a specific version of Atlas, you can do so by specifying the version parameter.

- uses: ariga/setup-atlas@v0
  with:
    version: "vX.Y.Z"

Flavor

If you want to install a specific driver flavor of Atlas, you can do so by specifying the flavor parameter.

- uses: ariga/setup-atlas@v0
  with:
    flavor: "snowflake"

cloud-token

The Atlas Cloud token to use for authentication. Must be passed as a secret.

- uses: ariga/setup-atlas@v0
  with:
    cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }}

Caching

On Linux and macOS the binary is installed to ~/.atlas-bin and cached between runs with actions/cache, keyed by OS, architecture, requested version and the installed build. When the cached binary is already up to date, the download is skipped. latest always checks for a newer release, and a new cache entry is saved only when the binary has changed.

Reporting Issues

If you encounter any issues or have feature requests, please file an issue on the ariga/atlas repository with the setup-atlas tag.

Legal

The source code for this GitHub Action is released under the Apache 2.0 License, see LICENSE.

This action downloads a binary version of Atlas which is distributed under the Ariga EULA.

Setup Atlas is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Installs a specific version of Atlas
v0.5
Latest

Setup Atlas is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.