using push event
This commit is contained in:
15
.github/workflows/docker.yml
vendored
15
.github/workflows/docker.yml
vendored
@@ -2,12 +2,11 @@ name: Publish Docker image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
push:
|
||||||
LABS:
|
tags:
|
||||||
description: 'Labs version'
|
- 'v*'
|
||||||
required: true
|
branches:
|
||||||
default: 'v2.1.1'
|
- 'stable'
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@@ -17,8 +16,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
ref: ${{ inputs.LABS }}
|
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@@ -30,8 +27,6 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
tags: |
|
|
||||||
type=semver,pattern={{raw}}
|
|
||||||
images: jetaylor74/islp_labs
|
images: jetaylor74/islp_labs
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
|
|||||||
Reference in New Issue
Block a user