From ca68e5dc42a6140fa093cbf5654eded8f2c0cba0 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 9 Aug 2021 13:28:08 -0400 Subject: [PATCH] Fix deploy script --- .github/workflows/deploy.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aefe587..f34904f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,24 +2,28 @@ name: deploy-dotfiles on: push: - branches: [main] + branches: [ main ] pull_request: - branches: [main] + branches: [ main ] jobs: deploy: - runs-on: alpine-latest + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 name: Login to Github Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} name: Build and Push Docker Image uses: docker/build-push-action@v2