-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 1023 Bytes
/
WebGSM-Docker.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
37
name: WebGSM-Docker # Build and Publish
on:
push:
tags:
- 'v*.*.*'
pull_request: # Optional: Run for pull requests to test
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Set lowercase repository owner
run: echo "REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
ghcr.io/${{ env.REPOSITORY_OWNER }}/webgsm:latest
ghcr.io/${{ env.REPOSITORY_OWNER }}/webgsm:${{ github.run_number }}