This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Flo
authored
Jun 11, 2020
1 parent
3b9d44d
commit 360e3c7
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish to Docker Registry | ||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '0 2 * * 0' # Weekly on Sundays at 02:00 | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Get release version | ||
id: get_version | ||
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10}) | ||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: openclimatefix/metoffice_ec2 | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
tags: "latest,${{ env.RELEASE_VERSION }}" |