Push All Images To Dockerhub #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
fetch-depth: 0 | |
- | |
name: Set variables | |
run: echo "VERSION=`echo $(git describe --tags `git rev-list --tags --max-count=1`)`" >> $GITHUB_ENV | |
- name: Test | |
run: | | |
echo $VERSION | |
echo ${{ env.VERSION }} | |
echo $(git describe --tags --abbrev=0) | |
echo $(git describe --tags `git rev-list --tags --max-count=1`) | |
echo $(git describe $(git rev-parse HEAD) --abbrev=0) | |
# 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 }} |