25 lines
No EOL
500 B
YAML
25 lines
No EOL
500 B
YAML
name: Docker Image Main Branch
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
name: Check out code
|
|
|
|
- uses: mr-smithers-excellent/docker-build-push@v5
|
|
name: Build & push Docker image
|
|
with:
|
|
image: billchurch/webssh2
|
|
tags: main
|
|
registry: docker.io
|
|
dockerfile: Dockerfile
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |