Skip to content

fix: messed up filename when using gh web upload #306

fix: messed up filename when using gh web upload

fix: messed up filename when using gh web upload #306

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}}