Skip to content

Commit 219bb1a

Browse files
committed
docker login
Signed-off-by: Ashutosh Kumar <[email protected]>
1 parent b7c2c5f commit 219bb1a

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,31 @@ jobs:
5757
fetch-depth: 1
5858
path: go/src/github.com/sonasingh46/github-actions
5959

60-
- name: Ginkgo Install
60+
- name: Install Docker
6161
run: |
62-
go install github.com/onsi/ginkgo/ginkgo
63-
export PATH=$PATH:$(go env GOPATH)/bin
64-
ginkgo version
62+
sudo apt-get install \
63+
apt-transport-https \
64+
ca-certificates \
65+
curl \
66+
gnupg-agent \
67+
software-properties-common
68+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
69+
70+
sudo add-apt-repository \
71+
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
72+
$(lsb_release -cs) \
73+
stable"
74+
75+
sudo apt-get update
76+
sudo apt-get install docker-ce docker-ce-cli containerd.io
77+
docker --version
78+
79+
- name: Login to Docker
80+
uses: azure/docker-login@v1
81+
with:
82+
login-server: index.docker.io
83+
username: ${{ secrets.DOCKER_ID }}
84+
password: ${{ secrets.DOCKER_SECRET }}
6585

6686

6787

0 commit comments

Comments
 (0)