Skip to content

Commit

Permalink
Publish packages to chanzuckerberg repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarrien committed Jul 22, 2020
1 parent 1f7bab7 commit a8a2f30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Docker Login
run: docker login docker.pkg.github.com -u namshi -p $GITHUB_TOKEN
run: docker login docker.pkg.github.com -u chanzuckerberg -p $GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Build
run: docker build --tag docker.pkg.github.com/namshi/docker-smtp/smtp:latest .
run: docker build --tag docker.pkg.github.com/chanzuckerberg/docker-smtp/smtp:latest .
- name: Docker Publish
run: docker push docker.pkg.github.com/namshi/docker-smtp/smtp:latest
run: docker push docker.pkg.github.com/chanzuckerberg/docker-smtp/smtp:latest
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*.*.*'
- '!v*.*.*-*'

jobs:
build:
Expand All @@ -16,13 +15,13 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}

- name: Docker Login
run: docker login docker.pkg.github.com -u namshi -p $GITHUB_TOKEN
run: docker login docker.pkg.github.com -u chanzuckerberg -p $GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Build
run: docker build --tag docker.pkg.github.com/namshi/docker-smtp/smtp:${{ steps.get_version.outputs.VERSION }} .
run: docker build --tag docker.pkg.github.com/chanzuckerberg/docker-smtp/smtp:${{ steps.get_version.outputs.VERSION }} .
- name: Docker Publish
run: docker push docker.pkg.github.com/namshi/docker-smtp/smtp:${{ steps.get_version.outputs.VERSION }}
run: docker push docker.pkg.github.com/chanzuckerberg/docker-smtp/smtp:${{ steps.get_version.outputs.VERSION }}

- name: Create Release
id: create_release
Expand Down

0 comments on commit a8a2f30

Please sign in to comment.