Browse Source

Add test deployment script

main
parent
commit
daf0832246
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 31
      .github/workflows/deploy.yml

31
.github/workflows/deploy.yml

@ -0,0 +1,31 @@
name: deploy-dotfiles
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
deploy:
runs-on: alpine-latest
steps:
name: Checkout
uses: actions/checkout@v1
name: Login to Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_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
Loading…
Cancel
Save