Update .gitea/workflows/docker-build-push.yml
This commit is contained in:
@@ -3,10 +3,6 @@ name: Docker Build & Push (Template)
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
runner:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: devsg-atlantic
|
|
||||||
image_name:
|
image_name:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@@ -22,11 +18,6 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: .
|
default: .
|
||||||
secrets:
|
|
||||||
DOCKER_HUB_USERNAME:
|
|
||||||
required: true
|
|
||||||
DOCKER_HUB_ACCESS_TOKEN:
|
|
||||||
required: true
|
|
||||||
outputs:
|
outputs:
|
||||||
image:
|
image:
|
||||||
description: Fully-qualified image reference pushed to Docker Hub
|
description: Fully-qualified image reference pushed to Docker Hub
|
||||||
@@ -34,7 +25,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ inputs.runner }}
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
outputs:
|
outputs:
|
||||||
image: ${{ steps.push.outputs.image }}
|
image: ${{ steps.push.outputs.image }}
|
||||||
|
|
||||||
@@ -51,8 +44,8 @@ jobs:
|
|||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ env.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ env.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Push Docker image to Docker Hub
|
- name: Push Docker image to Docker Hub
|
||||||
id: push
|
id: push
|
||||||
|
|||||||
Reference in New Issue
Block a user