|
@ -2,24 +2,28 @@ name: deploy-dotfiles |
|
|
|
|
|
|
|
|
on: |
|
|
on: |
|
|
push: |
|
|
push: |
|
|
branches: [main] |
|
|
|
|
|
|
|
|
branches: [ main ] |
|
|
|
|
|
|
|
|
pull_request: |
|
|
pull_request: |
|
|
branches: [main] |
|
|
|
|
|
|
|
|
branches: [ main ] |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
deploy: |
|
|
deploy: |
|
|
runs-on: alpine-latest |
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
permissions: |
|
|
|
|
|
contents: read |
|
|
|
|
|
packages: write |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
name: Checkout |
|
|
name: Checkout |
|
|
uses: actions/checkout@v1 |
|
|
|
|
|
|
|
|
uses: actions/checkout@v2 |
|
|
|
|
|
|
|
|
name: Login to Github Container Registry |
|
|
name: Login to Github Container Registry |
|
|
uses: docker/login-action@v1 |
|
|
|
|
|
|
|
|
uses: docker/login-action@v2 |
|
|
with: |
|
|
with: |
|
|
registry: ghcr.io |
|
|
registry: ghcr.io |
|
|
username: ${{ github.repository_owner }} |
|
|
|
|
|
password: ${{ secrets.REGISTRY_TOKEN }} |
|
|
|
|
|
|
|
|
username: ${{ github.actor }} |
|
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
|
name: Build and Push Docker Image |
|
|
name: Build and Push Docker Image |
|
|
uses: docker/build-push-action@v2 |
|
|
uses: docker/build-push-action@v2 |
|
|