Content-Length: 317480 | pFad | http://github.com/sudo-bot/docker-phpunit/commit/8188a92d206b47d736a025f36f38028fd8127bcb

7F Add a publish workflow · sudo-bot/docker-phpunit@8188a92 · GitHub
Skip to content

Commit 8188a92

Browse files
committed
Add a publish workflow
1 parent 5e146d0 commit 8188a92

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Docker image
2+
on:
3+
push:
4+
tags:
5+
- latest
6+
7+
jobs:
8+
push_to_registry:
9+
name: Push Docker image to GitHub Packages
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v3
14+
# https://github.com/docker/setup-qemu-action
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v2
17+
# https://github.com/docker/setup-buildx-action
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v2
20+
- name: Login to DockerHub
21+
uses: docker/login-action@v2
22+
with:
23+
registry: docker.io
24+
username: ${{ secrets.DOCKER_REPOSITORY_LOGIN }}
25+
password: ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
26+
27+
- name: Build image
28+
run: make docker-build
29+
env:
30+
# See: https://github.com/docker/buildx/issues/59
31+
ACTION: push
32+
DOCKER_BUILDKIT: 1
33+
IMAGE_TAG: docker.io/botsudo/phpunit
34+
PLATFORM: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
IMAGE_TAG ?= docker-phpunit
22

33
# All: linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6
4+
# Supported by upstream PHP image: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
45
PLATFORM ?= linux/amd64
56

67
ACTION ?= load

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sudo-bot/docker-phpunit/commit/8188a92d206b47d736a025f36f38028fd8127bcb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy