Skip to content

Sedna v0.6.0 release #8

Sedna v0.6.0 release

Sedna v0.6.0 release #8

Workflow file for this run

# refers:
# https://docs.docker.com/ci-cd/github-actions/
# https://docs.github.com/cn/actions/guides/publishing-docker-images
name: Publish Docker Images
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push images to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
path: ./src/github.com/${{ github.repository }}
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Run push images
run: |
# ${GITHUB_REPOSITORY} => kubeedge/sedna
# ${GITHUB_REF} => refs/tags/v0.0.1
# IMAGE_REPO=kubeedge IMAGE_TAG=v0.0.1
# see https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
make push-all IMAGE_REPO=$(echo ${GITHUB_REPOSITORY%/*} | tr A-Z a-z) IMAGE_TAG=${GITHUB_REF#refs/*/}
working-directory: ./src/github.com/${{ github.repository }}