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