Skip to content

Commit

Permalink
chore(atlas): Upgrade atlas version
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Rodriguez <[email protected]>
  • Loading branch information
javirln committed Feb 13, 2025
1 parent e263443 commit 0e50b29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Generate migrations
if: ${{ matrix.app == 'controlplane' }}
env:
ATLAS_VERSION: v0.30.0
ATLAS_VERSION: v0.31.1-647df7a-canary
run: |
wget -q https://release.ariga.io/atlas/atlas-linux-amd64-$ATLAS_VERSION -O /tmp/atlas
sudo install /tmp/atlas /usr/local/bin/atlas
Expand Down
5 changes: 3 additions & 2 deletions app/controlplane/Dockerfile.migrations
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Container image built by go-releaser that's used to run migrations against the database during deployment
# See https://atlasgo.io/guides/deploying/image
# Current version v0.31.0
FROM arigaio/atlas@sha256:05d435f32c7d732abad12e2b4fdb8c952fe695a7fb2aa41a974048c7313ceb1d as base
# Current version v0.31.1-647df7a-canary
# Until a v0.31.1 release is available
FROM arigaio/atlas@sha256:03171af017c334919bb25a22e92390f810db30805de1f5e12460702e45c296ef as base

FROM scratch
# Update permissions to make it readable by the user
Expand Down
2 changes: 1 addition & 1 deletion common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ init: init-api-tools
go install github.com/vektra/mockery/[email protected]
# using binary release for atlas, since ent schema handler is not included
# in the community version anymore https://github.com/ariga/atlas/issues/2388#issuecomment-1864287189
curl -sSf https://atlasgo.sh | ATLAS_VERSION=v0.27.0 sh -s -- -y
curl -sSf https://atlasgo.sh | ATLAS_VERSION=v0.31.1-647df7a-canary sh -s -- -y

# initialize API tooling
.PHONY: init-api-tools
Expand Down

0 comments on commit 0e50b29

Please sign in to comment.