ci: update names and steps (#1720)

This commit is contained in:
Jef LeCompte
2021-01-17 15:59:32 -05:00
committed by GitHub
parent 7997d6d22a
commit 8ece4b6412
6 changed files with 44 additions and 31 deletions
+21
View File
@@ -0,0 +1,21 @@
name: Nightly Release
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}
jobs:
build-publish:
name: Build and publish nightly Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login into GitHub Container Registry
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Build Docker image
run: |
docker build \
-t "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}" \
-t "ghcr.io/${GITHUB_REPOSITORY}:nightly" .
- name: Publish Docker image
run: docker push "ghcr.io/${GITHUB_REPOSITORY}"