File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Expand file tree Collapse file tree 2 files changed +16
-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
11
+
12
+ pull_request :
13
+ branches :
14
+ - main
10
15
11
16
jobs :
12
17
docker-images :
13
- runs-on : ubuntu-latest
18
+ runs-on : ubuntu-20.04
14
19
steps :
15
- - uses : actions/checkout@v2
20
+ - name : Checkout
21
+ uses : actions/checkout@v2
16
22
17
23
- name : Set up QEMU
18
24
uses : docker/setup-qemu-action@v1
19
25
20
26
- name : Set up Docker Buildx
21
27
uses : docker/setup-buildx-action@v1
22
28
29
+ - name : Login to Docker Hub
30
+ uses : docker/login-action@v1
31
+ with :
32
+ username : ${{ secrets.DOCKER_USERNAME }}
33
+ password : ${{ secrets.DOCKER_PASSWORD }}
34
+
23
35
- name : Run ./ci/steps/docker-buildx-push.sh
24
36
run : ./ci/steps/docker-buildx-push.sh
25
37
env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
28
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
38
+ 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