Skip to content

Commit

Permalink
Add: Action - container build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlelek committed Nov 6, 2023
1 parent 8b1da1c commit ba870fb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/

name: Docker Release

on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true
default: 'latest'

jobs:

build:

runs-on: ubuntu-latest
environment: Docker

steps:

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
#context: .
push: true
tags: "raneto/raneto:${{ github.event.inputs.version }}"

0 comments on commit ba870fb

Please sign in to comment.