Skip to content

Merge pull request #1083 from disease-sh/dependabot/npm_and_yarn/word… #289

Merge pull request #1083 from disease-sh/dependabot/npm_and_yarn/word…

Merge pull request #1083 from disease-sh/dependabot/npm_and_yarn/word… #289

name: Docker Publish
on:
push:
branches: [master]
paths-ignore:
- 'README.md'
- 'SECURITY.md'
- 'TERMS.md'
- 'privacy.md'
- 'CONTRIBUTING.md'
jobs:
publish:
if: github.repository == 'disease-sh/API'
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- uses: zcong1993/setup-timezone@master
with:
timezone: America/Denver
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H-%M')"
- name: Publish calver tag to Registry
uses: docker/build-push-action@v1
with:
context: .
username: ebwinters
password: ${{ secrets.Docker_Token }}
repository: novelcovid/novelcovid-api
tags: ${{ steps.date.outputs.date }}
- name: Publish latest to Registry
uses: docker/build-push-action@v1
with:
username: ebwinters
password: ${{ secrets.Docker_Token }}
repository: novelcovid/novelcovid-api
tags: latest
- name: Publish hashed tag to Registry
uses: docker/build-push-action@v1
with:
username: ebwinters
password: ${{ secrets.Docker_Token }}
repository: novelcovid/novelcovid-api
tag_with_sha: true
merge-branch:
if: github.repository == 'disease-sh/API'
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Merge by labeled
uses: devmasx/[email protected]
with:
type: now
target_branch: 'prod'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}