Skip to content

Create README.md

Create README.md #2

Workflow file for this run

name: Docker Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Build and push Docker image
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
docker build -t infiniteintegrator/go-sorter .
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker tag infiniteintegrator/go-sorter infiniteintegrator/go-sorter:latest
docker push infiniteintegrator/go-sorter:latest