mirror of
https://github.com/Snigdha-OS/snigdhaos-docker.git
synced 2025-09-06 17:45:13 +02:00
🐛 fix: dir path ./
This commit is contained in:
13
.github/workflows/snigdhaos-docker.yml
vendored
13
.github/workflows/snigdhaos-docker.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- cron: '30 05 * * *' # Cron schedule for automatic builds (adjust as needed)
|
- cron: '30 05 * * *' # Cron schedule for automatic builds (adjust as needed)
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
@@ -45,16 +45,17 @@ jobs:
|
|||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: ./snigdhaos # Update context to the snigdhaos directory
|
||||||
push: true
|
push: true
|
||||||
tags: snigdhaos/snigdhaos:latest
|
tags: |
|
||||||
|
snigdhaos/snigdhaos:latest
|
||||||
platforms: linux/amd64,linux/arm64 # Support for multiple architectures
|
platforms: linux/amd64,linux/arm64 # Support for multiple architectures
|
||||||
cache-from: type=registry,ref=snigdhaos/snigdhaos:latest # Enable cache from Docker registry
|
cache-to: type=inline # Improved caching mechanism
|
||||||
|
cache-from: type=registry,ref=snigdhaos/snigdhaos:latest
|
||||||
|
|
||||||
# Optionally, tag the build with a version from GitHub
|
# Optionally, tag the build with a version from GitHub
|
||||||
- name: Tag Docker image with version
|
- name: Tag Docker image with version
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(git describe --tags --abbrev=0)
|
VERSION=$(git describe --tags --abbrev=0 || echo "latest")
|
||||||
docker tag snigdhaos/snigdhaos:latest snigdhaos/snigdhaos:${VERSION}
|
docker tag snigdhaos/snigdhaos:latest snigdhaos/snigdhaos:${VERSION}
|
||||||
docker push snigdhaos/snigdhaos:${VERSION}
|
docker push snigdhaos/snigdhaos:${VERSION}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user