33 lines
782 B
YAML
33 lines
782 B
YAML
name: Publish Docker
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
release:
|
|
types: [published, created, edited]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Install Docker
|
|
run: |
|
|
apt-get update
|
|
apt-get install curl -y
|
|
curl -fsSL https://get.docker.com | sh
|
|
- name: Install building tools
|
|
run: |
|
|
apt-get install build-essential python3 python3-pip -y
|
|
|
|
- name: Build and push image
|
|
uses: elgohr/Publish-Docker-Github-Action@v5
|
|
with:
|
|
name: nathanwoodburnwoodburn/eth-oidc
|
|
username: nathanwoodburn
|
|
password: ${{ secrets.DOCKERGIT_TOKEN }}
|
|
registry: git.woodburn.au
|
|
tag_names: true
|
|
tag_semver: true
|
|
snapshot: true
|