-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildImagesTestEnvironment.yaml
More file actions
44 lines (37 loc) · 1.27 KB
/
Copy pathBuildImagesTestEnvironment.yaml
File metadata and controls
44 lines (37 loc) · 1.27 KB
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
37
38
39
40
41
42
43
44
name: Docker Build Test Environment
on:
push:
branches:
- 'test-environment'
jobs:
docker-build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: set lower case repository
run: |
echo "REPOSITORY_LC=${REPOSITORY,,}" >>${GITHUB_ENV}
env:
REPOSITORY: '${{ github.repository }}'
- name: Build and push frp-client image
run: |
docker build -t ghcr.io/${REPOSITORY_LC}:frp-client-test .
docker push ghcr.io/${REPOSITORY_LC}:frp-client-test
- name: Build and push certbot-script image
run: |
docker build -t ghcr.io/${REPOSITORY_LC}:certbot-script -f ./Dockerfile.certbot .
docker push ghcr.io/${REPOSITORY_LC}:certbot-script
- name: Build and push frp-server image
run: |
docker build -t ghcr.io/${REPOSITORY_LC}:frp-server -f ./Dockerfile.frps .
docker push ghcr.io/${REPOSITORY_LC}:frp-server