mirror of
https://github.com/CorentinTh/it-tools.git
synced 2024-11-10 17:35:48 +08:00
chore(cd): docker nightly releases
This commit is contained in:
parent
001031b7b5
commit
f5c865b278
1 changed files with 12 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
|||
name: docker-release
|
||||
name: Docker nightly release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
|
@ -38,6 +38,13 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
|
@ -57,4 +64,4 @@ jobs:
|
|||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: corentinth/it-tools:latest
|
||||
tags: corentinth/it-tools:nightly
|
Loading…
Reference in a new issue