Skip to content

Commit 29f6eca

Browse files
author
Borja García Rodríguez
committed
revert login
1 parent 585c129 commit 29f6eca

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/basket-api.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ env:
1616
image: basket.api
1717
branch: $(echo ${GITHUB_REF#refs/heads/})
1818
jobs:
19-
Login:
20-
runs-on: ubuntu-16.04
19+
login:
20+
runs-on: ubuntu-latest
2121
steps:
22-
- name: Login to docker registry
23-
run: echo $PASSWORD | docker login -u $USERNAME --password-stdin
22+
- name: Login to Container Registry
23+
uses: docker/login-action@v1
24+
with:
25+
registry: ${{ env.registryEndpoint }}
26+
username: ${{ secrets.USERNAME }}
27+
password: ${{ secrets.PASSWORD }}
2428
BuildContainersForPR_Linux:
2529
runs-on: ubuntu-16.04
2630
if: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)