Skip to content

feat: add ghcr runner #2

feat: add ghcr runner

feat: add ghcr runner #2

name: Build & Push to GHCR
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -t ghcr.io/timberware/woodpecker:latest -f deployments/Dockerfile .
- name: Push image
run: |
docker push ghcr.io/timberware/woodpecker:latest