File tree 2 files changed +12
-11
lines changed
2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
8
8
release :
9
- types : [released]
9
+ types :
10
+ - released
10
11
11
12
jobs :
12
13
docker-images :
13
- runs-on : ubuntu-latest
14
+ runs-on : ubuntu-20.04
14
15
steps :
15
- - uses : actions/checkout@v2
16
+ - name : Checkout
17
+ uses : actions/checkout@v2
16
18
17
19
- name : Set up QEMU
18
20
uses : docker/setup-qemu-action@v1
19
21
20
22
- name : Set up Docker Buildx
21
23
uses : docker/setup-buildx-action@v1
22
24
25
+ - name : Login to Docker Hub
26
+ uses : docker/login-action@v1
27
+ with :
28
+ username : ${{ secrets.DOCKER_USERNAME }}
29
+ password : ${{ secrets.DOCKER_PASSWORD }}
30
+
23
31
- name : Run ./ci/steps/docker-buildx-push.sh
24
32
run : ./ci/steps/docker-buildx-push.sh
25
33
env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
28
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
34
+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change @@ -26,11 +26,6 @@ main() {
26
26
# Download the release-packages artifact
27
27
download_artifact release-packages ./release-packages
28
28
29
- # Login to Docker
30
- if [[ ${CI-} ]]; then
31
- echo " $DOCKER_PASSWORD " | docker login -u " $DOCKER_USERNAME " --password-stdin
32
- fi
33
-
34
29
docker buildx bake -f ci/release-image/docker-bake.hcl --push
35
30
}
36
31
You can’t perform that action at this time.
0 commit comments