Skip to content

Commit

Permalink
start building dev and stable containers + tags for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Timtam committed Aug 3, 2024
1 parent 131ea95 commit bd79cfc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/push_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,23 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push Docker image
name: Build and push Docker dev image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: tonironaldbarth/hitster:latest
tags: tonironaldbarth/hitster:dev
cache-from: type=gha
cache-to: type=gha,mode=max
-
name: Build and push Docker stable image
if: startsWith(github.ref, 'refs/tags') && !github.event_type != 'pull_request'
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: tonironaldbarth/hitster:latest , tonironaldbarth/hitster:${{ github.ref_name }}
cache-from: type=gha
cache-to: type=gha,mode=max
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,18 @@ Follow these steps to get a dev environment ready to run the project locally.
The project is supposed to run inside a Docker container. As such, it holds a Dockerfile which builds the project. It also pushes docker images whenever a commit is created. If you just want to spin it up locally to give it a try, run the following command with Docker installed:

```sh
docker run -p 8000:8000 tonironaldbarth/hitster
docker run -p 8000:8000 tonironaldbarth/hitster:latest
```

The Docker container currently only automatically gets built for amd64 and arm64, feel free to open an issue or pull request to add/request more build targets.
Multiple containers are available to choose from:

| tag | purpose |
| --- | ------- |
| latest | newest stable version |
| dev | bleeding edge dev (might break unpredictably, contains all newest features that haven't been merged into stable) |
| <release_name> | a specific release that won't change anymore, see the [list of available tags](https://github.com/Timtam/hitster/tags) for your possible options |

The Docker containers currently only automatically gets built for amd64 and arm64, feel free to open an issue or pull request to add/request more build targets.

If you want to build the container for yourself, clone the repository, open a command line and navigate into the project directory, then run the following commands:

Expand Down

0 comments on commit bd79cfc

Please sign in to comment.