Skip to content

Commit

Permalink
add files for docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrip committed Nov 25, 2024
1 parent 4c396f0 commit f08af71
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci

on:
push:
branches:
- "main"
paths-ignore:
- 'docs/**'

env:
LATEST_TAG: meldproject/

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
tags: ${{ secrets.DOCKERHUB_USERNAME }}/aidhs:latest
push: true
cache-from: type=gha
cache-to: type=gha,mode=max

23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ci

on:
push:
tags:
- "*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: create directory
run: |
mkdir docker-data
zip aidhs.zip docker-data compose.yml
- name: release
uses: softprops/action-gh-release@v2
if: startswith(github.ref, 'refs/tags/')
with:
files: aidhs.zip

0 comments on commit f08af71

Please sign in to comment.