-
Notifications
You must be signed in to change notification settings - Fork 80
36 lines (31 loc) · 796 Bytes
/
dev_build.yml
File metadata and controls
36 lines (31 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: dev-build
on:
workflow_run:
workflows: ["tests"]
branches: [main]
types:
- completed
workflow_dispatch:
inputs:
tag:
description: "Docker image tag"
required: true
default: "latest"
env:
IMAGE_TAG: ${{ github.event.inputs.tag || 'latest' }}
jobs:
dev_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Build and push image
uses: docker/build-push-action@v7
with:
file: Dockerfile
push: true
tags: rafsaf/minimal-fastapi-postgres-template:${{ env.IMAGE_TAG }}