Skip to content

Commit

Permalink
start build and deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
echo8 committed Dec 8, 2024
1 parent 94d496c commit 118d4fa
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Deploy

on: workflow_dispatch

jobs:
build-server:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: echo8/pastesphere:latest
file: Dockerfile.server

0 comments on commit 118d4fa

Please sign in to comment.