Skip to content

Commit

Permalink
Merge pull request #80 from covermymeds/docker_github_packages
Browse files Browse the repository at this point in the history
stop pushing to private repo
  • Loading branch information
drewby08 authored Feb 5, 2021
2 parents e62cadb + 65f0574 commit d077cf4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
version: latest
args: release --skip-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 9 additions & 18 deletions .github/workflows/tagrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

dockerbuild:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
-
name: Checkout code
- name: Check out the repo
uses: actions/checkout@v2

-
name: Get the pushed tag
id: vars
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}

-
name: Build and push
id: docker_build
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
push: true
registry: covermymeds.azurecr.io
username: ${{ secrets.service_principal }}
password: ${{ secrets.service_principal_password }}
repository: cmm/azure-key-vault-agent
tags: ${{ steps.vars.outputs.tag }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: covermymeds/azure-key-vault-agent/azure-key-vault-agent
tag_with_ref: true

0 comments on commit d077cf4

Please sign in to comment.