Skip to content

Commit 88a4cb5

Browse files
committed
Add login before build
1 parent 5db1fb6 commit 88a4cb5

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/basket-api.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ env:
1616
image: basket.api
1717
branch: $(echo ${GITHUB_REF#refs/heads/})
1818
jobs:
19-
login:
20-
runs-on: ubuntu-latest
21-
steps:
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 }}
19+
# login:
20+
# runs-on: ubuntu-latest
21+
# steps:
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 }}
2828
BuildContainersForPR_Linux:
2929
runs-on: ubuntu-16.04
3030
if: ${{ github.event_name == 'pull_request' }}
@@ -54,6 +54,12 @@ jobs:
5454
steps:
5555
- name: 'Checkout Github Action'
5656
uses: actions/checkout@master
57+
- name: Login to Container Registry
58+
uses: docker/login-action@v1
59+
with:
60+
registry: ${{ env.registryEndpoint }}
61+
username: ${{ secrets.USERNAME }}
62+
password: ${{ secrets.PASSWORD }}
5763
- name: Compose build ${{ env.services }}
5864
run: docker-compose -f src/docker-compose.yml build ${{ env.services }}
5965
shell: bash

0 commit comments

Comments
 (0)