Add login before build

This commit is contained in:
David Sanz 2020-12-22 16:56:17 +01:00
parent 5db1fb65b5
commit 88a4cb5624

View File

@ -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