Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitffa6674

Browse files
committed
build: Merge jobs as data is not shared between them
1 parent2899ca8 commitffa6674

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
build:
1111
runs-on:ubuntu-latest
12+
env:
13+
DOCKER_USERNAME:${{ secrets.DOCKER_USERNAME }}
14+
DOCKER_PASSWORD:${{ secrets.DOCKER_PASSWORD }}
1215
steps:
1316
-uses:actions/checkout@v2
1417
-name:install go
@@ -17,17 +20,11 @@ jobs:
1720
go-version:1.16
1821
-name:build and test
1922
run:make
20-
deploy:
21-
if:${{ github.ref == 'refs/heads/master' }}
22-
needs:build
23-
runs-on:ubuntu-latest
24-
env:
25-
DOCKER_USERNAME:${{ secrets.DOCKER_USERNAME }}
26-
DOCKER_PASSWORD:${{ secrets.DOCKER_PASSWORD }}
27-
steps:
2823
-name:enable experimental docker features
24+
if:${{ github.ref == 'refs/heads/master' }}
2925
run:|
3026
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
3127
sudo service docker restart
3228
-name:publish multi-arch docker image
29+
if:${{ github.ref == 'refs/heads/master' }}
3330
run:make docker-pushx

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp