Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Docker image version push #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ name: Docker Build and Push
on:
push:
branches:
- main
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Read version from file
id: version
run: |
version=$(grep -o '^[0-9]\+\.[0-9]\+\.[0-9]\+' version.txt | head -n 1)
echo "::set-output name=version::$version"
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
Expand All @@ -20,4 +25,6 @@ jobs:
context: .
file: Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/freegpt-webui:latest
tags: |
${{ secrets.DOCKER_USERNAME }}/freegpt-webui:latest
${{ secrets.DOCKER_USERNAME }}/freegpt-webui:${{ steps.version.outputs.version }}
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0 - initial commit