Github actions to build and push docker images.
This commit is contained in:
parent
382a3796e1
commit
5fa414af5a
13
.github/workflows/development-tag.yaml
vendored
Normal file
13
.github/workflows/development-tag.yaml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: Development Tag
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev/1.5.x
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
uses: ./.github/workflows/docker-build.yaml
|
||||
with:
|
||||
tag: development
|
||||
secrets: inherit
|
||||
31
.github/workflows/docker-build.yaml
vendored
Normal file
31
.github/workflows/docker-build.yaml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Docker Build
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
tag:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: vexorian/dizquetv:${{ inputs.tag }}
|
||||
13
.github/workflows/edge-tag.yaml
vendored
Normal file
13
.github/workflows/edge-tag.yaml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: Edge Tag
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- edge
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
uses: ./.github/workflows/docker-build.yaml
|
||||
with:
|
||||
tag: edge
|
||||
secrets: inherit
|
||||
13
.github/workflows/latest-tag.yaml
vendored
Normal file
13
.github/workflows/latest-tag.yaml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: Latest Tag
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
uses: ./.github/workflows/docker-build.yaml
|
||||
with:
|
||||
tag: latest
|
||||
secrets: inherit
|
||||
13
.github/workflows/named-tag.yaml
vendored
Normal file
13
.github/workflows/named-tag.yaml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: Named Tag
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
uses: ./.github/workflows/docker-build.yaml
|
||||
with:
|
||||
tag: ${{ github.ref_name }}
|
||||
secrets: inherit
|
||||
Loading…
x
Reference in New Issue
Block a user