Update docker-image.yml
This commit is contained in:
1 parent
1aaf10fdbd
commit
7fdc8864f3
1 file changed
+7
-16
@@ -1,18 +1,9 @@
|
||||
name: Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "password_generator" ]
|
||||
pull_request:
|
||||
branches: [ "password_generator" ]
|
||||
|
||||
jobs:
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
password-generator:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
stdin_open: true # Открываем стандартный ввод для взаимодействия
|
||||
tty: true # Включаем режим псевдотерминала
|
||||
Reference in new issue
Block a user