Skip to content

Instantly share code, notes, and snippets.

@srz-zumix
Created August 10, 2021 13:28
Show Gist options
  • Save srz-zumix/f2cc95454e5f7da9af0c7239299ea9fc to your computer and use it in GitHub Desktop.
Save srz-zumix/f2cc95454e5f7da9af0c7239299ea9fc to your computer and use it in GitHub Desktop.
name: Docker Build
on:
schedule:
- cron: "0 0 * * 1"
jobs:
push_to_registries:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
push: true
tags: srzzumix/unityhub:latest
- name: Push to version tag
env:
DOCKER_TAG: latest
IMAGE_NAME: srzzumix/unityhub:latest
DOCKER_REPO: srzzumix/unityhub
run: |
./hooks/post_push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment