Create deploy.yml
Some checks failed
Build & Push / build (push) Has been cancelled

This commit is contained in:
Artem
2026-03-03 17:55:28 +03:00
committed by GitHub
parent 4e4621a09c
commit 68dc1e1538

20
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Build & Push
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Login to GHCR
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and push
run: |
docker build -t ghcr.io/${{ github.repository }}/app:latest .
docker push ghcr.io/${{ github.repository }}/app:latest