All checks were successful
Publish Docker / build (push) Successful in 9m42s
34 lines
830 B
YAML
34 lines
830 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: nathanwoodburn/eth-oidc
|
|
username: nathanwoodburn
|
|
password: ${{ secrets.DOCKERGIT_TOKEN }}
|
|
registry: git.woodburn.au
|
|
tag_names: true
|
|
tag_semver: true
|
|
snapshot: true
|
|
buildargs: PROJECT_ID=${{ secrets.PROJECT_ID }}
|