mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-28 17:45:16 +00:00
chore(action): add action to publish previous release as latest
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
26
.github/workflows/release-previous-docker.yml
vendored
Normal file
26
.github/workflows/release-previous-docker.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: "Release: Previous Docker"
|
||||
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Previous Docker image tag"
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
login:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Docker retag and push
|
||||
run: |
|
||||
docker pull nocodb/nocodb:${{ github.event.inputs.tag }}
|
||||
docker image tag nocodb/nocodb:${{ github.event.inputs.tag }} nocodb/nocodb:latest
|
||||
docker push nocodb/nocodb:latest
|
||||
Reference in New Issue
Block a user