Updated workflows
Test / test_build (push) Failing after 6s
Details
Test / test_build (push) Failing after 6s
Details
parent
667d063988
commit
0340f4da01
|
@ -8,13 +8,20 @@ jobs:
|
||||||
build_push:
|
build_push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: git.gertjankrol.nl/docker/toolkit:latest
|
container: git.gertjankrol.nl/docker/toolkit:latest
|
||||||
env:
|
|
||||||
REGISTRY: git.gertjankrol.nl
|
|
||||||
IMAGE_NAMESPACE: docker/php-toolkit
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} https://${REGISTRY}
|
uses: actions/docker-login@v2
|
||||||
- name: Build and push containers
|
with:
|
||||||
run: docker build . --build-arg VERSION=${{ github.ref_name }} -t ${REGISTRY}/${IMAGE_NAMESPACE}:${{ github.ref_name }} -t ${REGISTRY}/${IMAGE_NAMESPACE}:latest --push
|
registry: ${{secrets.DOCKER_REGISTRY}}
|
||||||
|
username: ${{secrets.DOCKER_USERNAME}}
|
||||||
|
password: ${{secrets.DOCKER_PASSWORD}}
|
||||||
|
- name: Build and push image
|
||||||
|
with:
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{github.ref_name}}
|
||||||
|
tags: |
|
||||||
|
${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:${{github.ref_name}}
|
||||||
|
${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:latest
|
||||||
|
push: true
|
||||||
|
|
|
@ -11,7 +11,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Build container (8.2)
|
- name: Set up Docker Buildx
|
||||||
run: docker build . --build-arg VERSION=8.2 -t php-toolkit-test:${{ github.ref_name }}
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Build image (8.2)
|
||||||
|
uses: actions/docker-build-push@v4
|
||||||
|
with:
|
||||||
|
build-args: |
|
||||||
|
VERSION=8.2
|
||||||
|
tags: php-toolkit-test:${{github.ref_name}}
|
||||||
|
push: false
|
||||||
- name: Image details
|
- name: Image details
|
||||||
run: docker image inspect php-toolkit-test:${{ github.ref_name }}
|
run: docker image inspect php-toolkit-test:${{github.ref_name}}
|
||||||
|
|
Loading…
Reference in New Issue