Github build golang docker image

Submitted by Lizhe on Tue, 10/20/2020 - 10:23

 

name: Docker Image CI

 

on:

  push:

    branches: [ master ]

  pull_request:

    branches: [ master ]

 

jobs:

 

  build:

 

    runs-on: ubuntu-latest

 

    steps:

    - uses: actions/checkout@v2

 

    - name: Build and Push Docker Iamge

      uses: docker/build-push-action@v1

      with: 

        username: ${{ secrets.username }}

        password: ${{ secrets.password }}

        repository: ${{ secrets.username }}/gohellobuild

        tag_with_sha: true