Push All Images To Dockerhub #2
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 | |
- | |
name: Set variables | |
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $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 }} |