Update .gitea/workflows/docker-build-push.yml

This commit is contained in:
2026-02-06 16:41:00 +00:00
parent 4510f6ff7f
commit bb39fb5f9e

View File

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