forked from francisco-sanchez-molina-org/node-puppeter-image
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 908 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Publish
on:
push:
branches:
- main
schedule:
- cron: '0 8 * * *'
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- uses: satackey/[email protected]
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- uses: docker/setup-buildx-action@v1
- name: set lower case repo name
run: |
echo "REPO_LC=`echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]'`" >>${GITHUB_ENV}
- uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/${{ env.REPO_LC }}:2.20.1