Add login before build
This commit is contained in:
parent
5db1fb65b5
commit
88a4cb5624
24
.github/workflows/basket-api.yml
vendored
24
.github/workflows/basket-api.yml
vendored
@ -16,15 +16,15 @@ env:
|
||||
image: basket.api
|
||||
branch: $(echo ${GITHUB_REF#refs/heads/})
|
||||
jobs:
|
||||
login:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ${{ env.registryEndpoint }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
# login:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Login to Container Registry
|
||||
# uses: docker/login-action@v1
|
||||
# with:
|
||||
# registry: ${{ env.registryEndpoint }}
|
||||
# username: ${{ secrets.USERNAME }}
|
||||
# password: ${{ secrets.PASSWORD }}
|
||||
BuildContainersForPR_Linux:
|
||||
runs-on: ubuntu-16.04
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
@ -54,6 +54,12 @@ jobs:
|
||||
steps:
|
||||
- name: 'Checkout Github Action'
|
||||
uses: actions/checkout@master
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ${{ env.registryEndpoint }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
- name: Compose build ${{ env.services }}
|
||||
run: docker-compose -f src/docker-compose.yml build ${{ env.services }}
|
||||
shell: bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user