cosmos-sdk/.github/workflows/docker.yml

33 lines
953 B
YAML
Raw Normal View History

2020-07-29 12:55:58 -07:00
name: Nightly Builds
# Nightly Builds rebuilds the simapp docker image Monday - Friday at midnight
# and pushes the image to https://hub.docker.com/r/interchainio/simapp/tags
on:
schedule:
- cron: "0 0 * * 1-5" # deploy at midnight Monday - Friday
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
2020-07-29 12:55:58 -07:00
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
2020-09-29 01:24:30 -07:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2020-07-29 12:55:58 -07:00
- name: Publish to Docker Hub
uses: docker/build-push-action@v2
2020-07-29 12:55:58 -07:00
with:
2020-09-29 01:24:30 -07:00
push: true
tags: interchainio/simapp:nightly-${{ steps.date.outputs.date }}