Skip to content

Commit 1fa1d6d

Browse files
committed
Add Docker build automation
1 parent c3e7464 commit 1fa1d6d

File tree

1 file changed

+33
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)