@@ -24,37 +24,26 @@ jobs:
2424 - run : npm i -g @quasar/cli@latest
2525 - run : npm ci
2626
27- - name : Create env file
27+ - name : Create public env file
2828 run : |
2929 cat << EOF >> .env.production.local
3030 ${{ secrets.STAGING_ENV_FILE }}
3131 EOF
3232
33- # - run: npm run build in debug mode --if-present
3433 - run : quasar build -m ssr -d --if-present
3534
36- # Login against a Docker registry except on PR
37- # https://github.com/docker/login-action
38- - name : Log into registry Docker Hub
39- # if: github.event_name != 'pull_request'
40- uses : docker/login-action@v1
35+ - # Login against GitHub Container Registry
36+ name : Log in to GitHub Container Registry
37+ uses : docker/login-action@v3
4138 with :
42- username : ${{ secrets.DOCKER_USERNAME }}
43- password : ${{ secrets.DOCKER_TOKEN }}
44-
45- # Extract metadata (tags, labels) for Docker
46- # https://github.com/docker/metadata-action
47- - name : Extract Docker metadata
48- id : meta
49- uses : docker/metadata-action@v3
50- with :
51- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
39+ registry : ghcr.io
40+ username : ${{ github.actor }}
41+ password : ${{ secrets.GITHUB_TOKEN }}
5242
53- # Build and push Docker image with Buildx (don't push on PR)
54- # https://github.com/docker/build-push-action
55- - name : Build and push Docker image
56- uses : docker/build-push-action@v2
43+ - # Build and push Docker image
44+ name : Build and push
45+ uses : docker/build-push-action@v6
5746 with :
5847 context : .
5948 push : true
60- tags : harmlesskey/harmlesskey_staging
49+ tags : ghcr.io/ harmlesskey/harmlesskey_staging
0 commit comments