Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5c7b37e
decouple shuttle
ivinjabraham Jan 24, 2025
9644dfc
feat: add dotenv support
hrideshmg Jan 24, 2025
b36f27d
feat: dockerise amD
hrideshmg Jan 24, 2025
6dcbeeb
feat: add workflow for publishing docker images
hrideshmg Jan 25, 2025
243fc59
fix: remove Cargo.lock from gitignore
hrideshmg Jan 25, 2025
7960e99
discard errors in loading dotenv
ivinjabraham Feb 3, 2025
aaf399a
fix: branch name and cargo init
hrideshmg Feb 3, 2025
130b96d
chore: remove unused action files
hrideshmg Feb 3, 2025
2a47869
decouple shuttle
ivinjabraham Jan 24, 2025
d865298
decouple shuttle
ivinjabraham Jan 24, 2025
edde249
feat: add dotenv support
hrideshmg Jan 24, 2025
2f4d819
feat: dockerise amD
hrideshmg Jan 24, 2025
881f682
feat: add workflow for publishing docker images
hrideshmg Jan 25, 2025
2240874
fix: remove Cargo.lock from gitignore
hrideshmg Jan 25, 2025
1297691
discard errors in loading dotenv
ivinjabraham Feb 3, 2025
288696e
fix: branch name and cargo init
hrideshmg Feb 3, 2025
4e8987b
chore: remove unused action files
hrideshmg Feb 3, 2025
98f4336
restructure codebase
ivinjabraham Oct 28, 2024
8a2d518
simplify codebase structure and add additional documentation
ivinjabraham Dec 20, 2024
15f03c5
decouple shuttle
ivinjabraham Jan 24, 2025
684b063
decouple shuttle
ivinjabraham Jan 24, 2025
0408a7f
Merge branch 'hrideshmg-docker' into develop
ivinjabraham Feb 3, 2025
6edc0ca
update status report to handle streaks
ivinjabraham Feb 4, 2025
321da97
Merge pull request #12 from ivinjabraham/develop
ivinjabraham Feb 4, 2025
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
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
target
Dockerfile
.dockerignore
.git
.gitignore
.github
docs
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DISCORD_TOKEN=
18 changes: 0 additions & 18 deletions .github/workflows/deploy.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/ghcr-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Inspired from: https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-docker-images
name: Create and publish Docker image to GHCR

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
workflow_dispatch:
push:
branches: ['main']

jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Uses the `docker/login-action` action to log in to the Github Container Registry
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# This step uses `docker/metadata-action` to extract tags and labels that will be applied to the specified image.
# The `id` "meta" allows the output of this step to be referenced in a subsequent step.
# The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/amfoss/amd
tags: |
# set latest tag for master branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }},priority=2000
type=schedule,pattern={{date 'YYYYMMDD'}}
type=ref,event=tag
type=ref,event=pr
type=sha

# This step uses the `docker/build-push-action` action to build the image. If the build succeeds, it pushes the image to GitHub Packages.
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
17 changes: 0 additions & 17 deletions .github/workflows/shuttle-run.yml

This file was deleted.

7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Shuttle ENV
Secrets.toml
.env
Loading