You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
626 B
31 lines
626 B
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
|
|
|