Skip to content

Commit 8e5be3f

Browse files
committed
Add Docker build automation
1 parent c3e7464 commit 8e5be3f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Docker Image
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Login to Docker Hub
14+
uses: docker/login-action@v3
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.actor }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v3
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
26+
- name: Build and push
27+
uses: docker/build-push-action@v6
28+
with:
29+
context: "{{defaultContext}}:wp_rs_web"
30+
push: true
31+
tags: automattic/wordpress-rs-web:latest

0 commit comments

Comments
 (0)