Created
August 10, 2021 13:28
-
-
Save srz-zumix/f2cc95454e5f7da9af0c7239299ea9fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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