diff --git a/.github/workflows/build_master.yml b/.github/workflows/build_master.yml deleted file mode 100644 index 63050c5e..00000000 --- a/.github/workflows/build_master.yml +++ /dev/null @@ -1,58 +0,0 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Deploy Live - -on: - push: - branches: [master] -# pull_request: -# branches: [ master ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Setup Node.js 16 - uses: actions/setup-node@v2 - with: - node-version: "16" - cache: "npm" - - run: npm i -g @quasar/cli@latest - - run: npm ci - - - name: Create env file - run: | - cat << EOF >> .env.production.local - ${{ secrets.ENV_FILE }} - EOF - - - run: quasar build -m ssr --if-present - - # Login against a Docker registry except on PR - # https://github.com/docker/login-action - - name: Log into registry Docker Hub - # if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - # Extract metadata (tags, labels) for Docker - # https://github.com/docker/metadata-action - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v3 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - # Build and push Docker image with Buildx (don't push on PR) - # https://github.com/docker/build-push-action - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - push: true - tags: harmlesskey/harmlesskey diff --git a/.github/workflows/build_staging.yml b/.github/workflows/build_staging.yml index 9f6172af..420952a6 100644 --- a/.github/workflows/build_staging.yml +++ b/.github/workflows/build_staging.yml @@ -35,12 +35,13 @@ jobs: # Login against a Docker registry except on PR # https://github.com/docker/login-action - - name: Log into registry Docker Hub + - name: Log into registry Github Container Registry # if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action @@ -57,4 +58,4 @@ jobs: with: context: . push: true - tags: harmlesskey/harmlesskey_staging + tags: harmlesskey/harmlesskey_staging:latest