forked from docker-library/wordpress
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1.03 KB
/
publish-7.4-apache.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish 7.4 Apache Image
on:
push:
branches:
- main
repository_dispatch:
types: [build_7.4_apache]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
run: ./publish-image.sh
working-directory: ./php7.4/apache/
- name: Test 7.4 WordPress Image
run: cd tests && ./workflow-test.sh
shell: bash
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish 7.4 Apache Docker Hub
run: ./publish-image.sh -p
shell: bash
working-directory: ./php7.4/apache/
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Publish 7.4 Git Package Repository
run: ./publish-image.sh -g
shell: bash
working-directory: ./php7.4/apache/