diff --git a/.github/workflows/database-migration.yml b/.github/workflows/database-migration.yml index 75e3fe8d0..74dc2876e 100644 --- a/.github/workflows/database-migration.yml +++ b/.github/workflows/database-migration.yml @@ -143,10 +143,13 @@ jobs: - name: Checkout code uses: actions/checkout@v5 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: Install golang-migrate - run: | - curl -L https://github.com/golang-migrate/migrate/releases/download/v4.17.0/migrate.linux-amd64.tar.gz | tar xvz - sudo mv migrate /usr/local/bin/ + run: go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.19.1 - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v6 @@ -214,10 +217,13 @@ jobs: - name: Checkout code uses: actions/checkout@v5 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: Install golang-migrate - run: | - curl -L https://github.com/golang-migrate/migrate/releases/download/v4.17.0/migrate.linux-amd64.tar.gz | tar xvz - sudo mv migrate /usr/local/bin/ + run: go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.19.1 - name: Authenticate to Google Cloud uses: google-github-actions/auth@v3 @@ -275,10 +281,13 @@ jobs: - name: Checkout code uses: actions/checkout@v5 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: Install golang-migrate - run: | - curl -L https://github.com/golang-migrate/migrate/releases/download/v4.17.0/migrate.linux-amd64.tar.gz | tar xvz - sudo mv migrate /usr/local/bin/ + run: go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.19.1 - name: Azure Login uses: azure/login@v3