Skip to content

Docker v0.12.6-dev5 #10

Docker v0.12.6-dev5

Docker v0.12.6-dev5 #10

name: Publish Docker image for new sidechain release
on:
release:
types:
- published
jobs:
main:
name: Push Integritee Sidechain to Dockerhub
runs-on: [ self-hosted ]
steps:
- uses: actions/checkout@v3
- name: Download sidechain from release
uses: dsaltares/fetch-gh-release-asset@master
with:
version: "tags/${{ github.event.release.tag_name }}"
file: integritee-worker-sidechain-${{ github.event.release.tag_name }}.tar.gz
target: "integritee-worker-sidechain.tar.gz"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Load Worker & Push
env:
DOCKER_BUILDKIT: 1
run: |
docker image load --input integritee-worker-sidechain.tar.gz
docker images --all
docker push integritee/sidechain:${{ github.event.release.tag_name }}
- name: Delete images
run: |
if [[ "$(docker images -q integritee/sidechain:${{ github.event.release.tag_name }} 2> /dev/null)" != "" ]]; then
docker image rmi --force integritee/sidechain:${{ github.event.release.tag_name }} 2>/dev/null
fi
docker images --all