Skip to content

Push All Images To Dockerhub #4

Push All Images To Dockerhub

Push All Images To Dockerhub #4

name: Push All Images To Dockerhub
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
ref: production
-
name: Set variables
run: echo "VERSION=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
- name: Test
run: |
echo $VERSION
echo ${{ env.VERSION }}
# run: |
# VER=$(cat VERSION)
# echo "VERSION=$VER" >> $GITHUB_ENV
-
name: Bootstrap config
run: cp .env_example .env
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUBUSERNAME }}
password: ${{ secrets.DOCKERHUBTOKEN }}
# -
# name: Build and push dataserver
# uses: docker/build-push-action@v5
# with:
# context: ./dataserver
# file: ds.Dockerfile
# push: true
# tags: uniuu/dataserver:${{ env.VERSION }}