mirror of
https://github.com/typeable/octopod.git
synced 2024-11-22 08:45:20 +03:00
Push nightly images to docker hub (#63)
This commit is contained in:
parent
61d53d3600
commit
9e1dcb4996
14
.github/workflows/build.yaml
vendored
14
.github/workflows/build.yaml
vendored
@ -94,7 +94,7 @@ jobs:
|
||||
|
||||
- name: Login to DockerHub
|
||||
id: login-docker-hub
|
||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/staging'
|
||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/develop'
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
@ -112,6 +112,18 @@ jobs:
|
||||
docker tag $image_name typeable/octopod:latest
|
||||
docker push typeable/octopod:latest
|
||||
|
||||
- name: Push Nightly Docker Images to DockerHub
|
||||
if: github.ref == 'refs/heads/develop'
|
||||
run: |
|
||||
# push docker images to DockerHub
|
||||
image_name=`cat octo-docker | docker load | awk '{print $3}'`
|
||||
docker tag $image_name typeable/octo:nightly
|
||||
docker push typeable/octo:nightly
|
||||
|
||||
image_name=`cat octopod-server-docker | docker load | awk '{print $3}'`
|
||||
docker tag $image_name typeable/octopod:nightly
|
||||
docker push typeable/octopod:nightly
|
||||
|
||||
- name: Rename Docker image archives
|
||||
run: |
|
||||
mv octo-docker octo-cli-image.tar.gz
|
||||
|
Loading…
Reference in New Issue
Block a user