Skip to content

Commit b9680e3

Browse files
committed
chore: add deploy workflow
1 parent 4a19b6f commit b9680e3

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Production Deploy
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Login to Docker Hub
16+
uses: docker/login-action@v3
17+
with:
18+
registry: ${{ secrets.REGISTRY_URL }}
19+
username: ${{ secrets.REGISTRY_USERNAME }}
20+
password: ${{ secrets.REGISTRY_TOKEN }}
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
25+
- name: Build and push
26+
uses: docker/build-push-action@v6
27+
with:
28+
context: .
29+
push: true
30+
tags: ${{ secrets.REGISTRY_URL }}/docker-phpbb
31+

0 commit comments

Comments
 (0)