Skip to content

Commit

Permalink
upload :for-next image before validating :next
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Sep 20, 2024
1 parent 69647d1 commit 5fecb39
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/dockerimage-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,28 @@ on:
jobs:
validate-next:
env:
IMAGE: colomoto/colomoto-docker:next
IMAGE: colomoto/colomoto-docker:for-next
IMAGE_NEXT: colomoto/colomoto-docker:next
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Docker image build
run: sh hooks/build
- name: Docker image validation
run: docker run --rm $IMAGE env validate.sh
- name: Login to docker hub
uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Push image :next
- name: Push image
uses: actions-hub/docker@master
with:
args: push ${IMAGE}
- name: Docker image validation
run: docker run --rm $IMAGE env validate.sh
- name: Docker tag next
run: docker tag $IMAGE $IMAGE_NEXT
- name: Push image :next
uses: actions-hub/docker@master
with:
args: push ${IMAGE_NEXT}

0 comments on commit 5fecb39

Please sign in to comment.