Skip to content

Commit

Permalink
feat: add docker-package-push action (#200)
Browse files Browse the repository at this point in the history
* add docker-package-push action

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* fix yamllint

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* fix tag

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin authored May 25, 2021
1 parent f0b471f commit 104ce3e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docker-package-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: docker-push-package

on:
push:
branches: [main]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2

- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v1

- name: "Login to Docker Hub"
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: "Login to GitHub Container Registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Build and push"
uses: docker/build-push-action@v2
with:
file: Dockerfile
context: .
push: true
tags: |
networkservicemesh/cmd-nsc:latest

0 comments on commit 104ce3e

Please sign in to comment.