Browse Source

Add login before build

pull/1565/head
David Sanz 4 years ago
parent
commit
88a4cb5624
1 changed files with 15 additions and 9 deletions
  1. +15
    -9
      .github/workflows/basket-api.yml

+ 15
- 9
.github/workflows/basket-api.yml 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


Loading…
Cancel
Save