Skip to content

Commit 1c2fa3a

Browse files
authored
Update main.yml
1 parent 1a67249 commit 1c2fa3a

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
1-
name: CI
1+
name: Build Service
22
on:
33
push:
4-
branches: [ master ]
5-
#pull_request:
6-
#branches: [ master ]
4+
branches:
5+
- master
6+
workflow_dispatch:
77

88
jobs:
99
build:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
14-
13+
- name: Correct env
14+
run:
15+
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
16+
17+
- name: Check out code into the Go module directory
18+
uses: actions/checkout@v1
19+
1520
- name: Set up QEMU
21+
id: qemu
1622
uses: docker/setup-qemu-action@v1
1723

1824
- name: Set up Docker Buildx
25+
id: buildx
1926
uses: docker/setup-buildx-action@v1
20-
27+
2128
- name: Login to GitHub Container Registry
22-
uses: docker/login-action@v1
29+
uses: docker/login-action@v1
2330
with:
2431
registry: ghcr.io
2532
username: ${{ github.repository_owner }}
@@ -30,4 +37,5 @@ jobs:
3037
with:
3138
context: .
3239
push: true
33-
tags: ghcr.io/minecrafthopper/panel:latest
40+
tags: ghcr.io/${{ env.REPO }}:latest
41+
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)