-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 884 Bytes
/
7.2.apache.yml
File metadata and controls
33 lines (29 loc) · 884 Bytes
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
name: Publish 7.2.apache
on:
push:
branches:
- master
paths:
- 'Dockerfile.7.2.apache'
workflow_dispatch:
jobs:
push_to_registry:
runs-on: ubuntu-latest
steps:
- name: get_image_name
run: |
repository=${{ github.repository }}
IMAGE_NAME=${{ github.actor }}/${repository##*/}
echo IMAGE_NAME=$IMAGE_NAME
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Hub
run: |
docker build -f Dockerfile.7.2.apache -t ${{ env.IMAGE_NAME }}:7.2-apache .
docker push ${{ env.IMAGE_NAME }}:7.2-apache