Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban authored Sep 18, 2019
1 parent 316f56a commit b617de5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: GitHub Registry :latest

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: Login to github registry
uses: actions/docker/login@master
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_REGISTRY_URL: docker.pkg.github.com

- name: Build image
uses: actions/docker/cli@master
with:
args: build -t docker.pkg.github.com/${GITHUB_REPOSITORY}/cli:latest .

- name: Push to registry
uses: actions/docker/cli@master
with:
args: push docker.pkg.github.com/${GITHUB_REPOSITORY}/cli:latest

0 comments on commit b617de5

Please sign in to comment.