Log in GitHub Container Registry first
@@ -33,9 +33,6 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- - name: Create containers
- run: gradle docker
-
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
@@ -43,6 +40,9 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
+ - name: Create containers
+ run: gradle docker
+
- name: Push containers
run: |
docker push ghcr.io/scalar-labs/scalardb-server:${{ steps.version.outputs.version }}
