fix: pull image just pushed to local registry because docker sucks

This commit is contained in:
Paolo Cuffiani
2022-04-22 10:04:14 +02:00
parent 7e3f069384
commit 4fb8a19f83
+3 -6
View File
@@ -45,14 +45,13 @@ jobs:
build-args: |
BASE_IMAGE=php:${{ matrix.version }}${{ matrix.flavor }}
tags: localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
load: true
push: true
- name: Test image
env:
REGISTRY: localhost:5000/
VERSION: ${{ matrix.version }}${{ matrix.flavor }}
run: make test
run: 'docker pull "${REGISTRY}${VERSION}" && make test'
- name: Build dev image for testing
uses: docker/build-push-action@v2
@@ -62,14 +61,13 @@ jobs:
build-args: |
BASE_IMAGE=localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
tags: localhost:5000/chialab/php-dev:${{ matrix.version }}${{ matrix.flavor }}
load: true
push: true
- name: Test dev image
env:
REGISTRY: localhost:5000/
VERSION: ${{ matrix.version }}${{ matrix.flavor }}
run: make -C dev test
run: 'docker pull "${REGISTRY}${VERSION}" && make -C dev test'
- name: Build xhprof image for testing
uses: docker/build-push-action@v2
@@ -79,14 +77,13 @@ jobs:
build-args: |
BASE_IMAGE=localhost:5000/chialab/php:${{ matrix.version }}${{ matrix.flavor }}
tags: localhost:5000/chialab/php-xhprof:${{ matrix.version }}${{ matrix.flavor }}
load: true
push: true
- name: Test xhprof image
env:
REGISTRY: localhost:5000/
VERSION: ${{ matrix.version }}${{ matrix.flavor }}
run: make -C xhprof test
run: 'docker pull "${REGISTRY}${VERSION}" && make -C xhprof test'
- name: Login to DockerHub
if: "github.event_name != 'pull_request'"