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