forked from C4illin/ASFclaim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readme, workflow, .(docker|git)ignore update.
- Loading branch information
1 parent
b4921be
commit 781c009
Showing
6 changed files
with
105 additions
and
212 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
/.git | ||
/.github | ||
/.idea | ||
/.vscode | ||
./resources/readme/* | ||
# Directories to ignore | ||
.git/ | ||
.github/ | ||
.idea/ | ||
.vscode/ | ||
node_modules/ | ||
resources/ | ||
|
||
# Ignore common archive and executable files | ||
*.exe | ||
*.zip | ||
*.tar.gz | ||
*.gz | ||
*.tgz | ||
*.rar | ||
*.7z | ||
*.jar | ||
|
||
# Temporary or lock files | ||
*.tmp | ||
pnpm-lock.yaml | ||
bun.lockb | ||
package-lock.json | ||
|
||
# Ignore configuration and script files | ||
.gitignore | ||
.env.template | ||
.env | ||
README.md | ||
LICENSE | ||
|
||
# Docker-specific files | ||
Dockerfile | ||
docker-compose.yml |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,18 @@ | ||
name: Docker Publish Main | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
PLATFORMS: linux/amd64,linux/arm64 | ||
TAG: main | ||
- main | ||
|
||
permissions: | ||
packages: write | ||
|
||
jobs: | ||
main: | ||
environment: release-docker | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@main | ||
with: | ||
show-progress: false | ||
submodules: recursive | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@master | ||
|
||
- name: Login to ghcr.io | ||
uses: docker/login-action@master | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@master | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Prepare environment outputs | ||
shell: sh | ||
run: | | ||
set -eu | ||
echo "DATE_ISO8601=$(date --iso-8601=seconds --utc)" >> "$GITHUB_ENV" | ||
echo "GHCR_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV" | ||
echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV" | ||
- name: Build and publish Docker image from Dockerfile | ||
uses: docker/build-push-action@master | ||
with: | ||
context: . | ||
platforms: ${{ env.PLATFORMS }} | ||
provenance: true | ||
sbom: true | ||
labels: | | ||
org.opencontainers.image.created=${{ env.DATE_ISO8601 }} | ||
org.opencontainers.image.version=${{ github.sha }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
tags: | | ||
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }} | ||
${{ env.DH_REPOSITORY }}:${{ env.TAG }} | ||
push: true | ||
|
||
- name: Update DockerHub repository description | ||
uses: peter-evans/dockerhub-description@main | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
repository: ${{ env.DH_REPOSITORY }} | ||
short-description: ${{ github.event.repository.description }} | ||
call-reusable-workflow: | ||
uses: JourneyDocker/github-workflows/.github/workflows/docker-publish.yml@main | ||
with: | ||
tag: main | ||
platforms: linux/amd64,linux/arm64 | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
node_modules | ||
storage | ||
.env | ||
/pnpm-lock.yaml | ||
# Directories to ignore | ||
node_modules/ | ||
storage/ | ||
|
||
# Temporary or lock files | ||
*.tmp | ||
pnpm-lock.yaml | ||
bun.lockb | ||
package-lock.json | ||
|
||
# Ignore configuration files | ||
.env |
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