2022-05-30 20:19:08 +10:00
|
|
|
name: Publish Docker
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
release:
|
|
|
|
types: [published, created, edited]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
2025-02-14 13:13:39 +11:00
|
|
|
- name: Install Docker
|
|
|
|
run: |
|
|
|
|
apt-get update
|
2025-02-14 13:14:18 +11:00
|
|
|
apt-get install curl -y
|
2025-02-14 13:13:39 +11:00
|
|
|
curl -fsSL https://get.docker.com | sh
|
2025-02-14 13:21:19 +11:00
|
|
|
- name: Install building tools
|
|
|
|
run: |
|
|
|
|
apt-get install build-essential python3 python3-pip -y
|
2025-02-14 13:14:18 +11:00
|
|
|
|
2022-05-30 20:19:08 +10:00
|
|
|
- name: Build and push image
|
2025-02-14 13:05:53 +11:00
|
|
|
uses: elgohr/Publish-Docker-Github-Action@v5
|
2022-05-30 20:19:08 +10:00
|
|
|
with:
|
2025-02-14 13:51:34 +11:00
|
|
|
name: nathanwoodburn/eth-oidc
|
2025-02-14 13:03:48 +11:00
|
|
|
username: nathanwoodburn
|
2025-02-14 12:41:26 +11:00
|
|
|
password: ${{ secrets.DOCKERGIT_TOKEN }}
|
|
|
|
registry: git.woodburn.au
|
2022-05-30 20:19:08 +10:00
|
|
|
tag_names: true
|
|
|
|
tag_semver: true
|
|
|
|
snapshot: true
|
2025-02-14 14:19:30 +11:00
|
|
|
buildargs: PROJECT_ID=${{ secrets.PROJECT_ID }}
|