Github Actions and readme file updated

This commit is contained in:
Paramtamtam 2021-01-16 01:42:44 +05:00
parent 6f590edfc5
commit 97e1214f68
No known key found for this signature in database
GPG Key ID: 366371698FAD0A2B
2 changed files with 16 additions and 8 deletions

View File

@ -12,10 +12,6 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 # Action page: <https://github.com/docker/setup-buildx-action>
id: buildx
- name: Docker login in default registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin &> /dev/null
@ -28,11 +24,15 @@ jobs:
- name: Build image
run: |
docker buildx build \
--platform ${{ steps.buildx.outputs.platforms }} \
docker build \
--tag "tarampampam/3proxy:${{ steps.tag.outputs.value }}" \
--tag "tarampampam/3proxy:latest" \
--tag "ghcr.io/tarampampam/3proxy:${{ steps.tag.outputs.value }}" \
--tag "ghcr.io/tarampampam/3proxy:latest" \
--push \
.
-f ./Dockerfile .
- name: Push into default registry
run: docker push "tarampampam/3proxy:${IMAGE_TAG}" && docker push "tarampampam/3proxy:latest"
- name: Push into ghcr.io
run: docker push "ghcr.io/tarampampam/3proxy:${IMAGE_TAG}" && docker push "ghcr.io/tarampampam/3proxy:latest"

View File

@ -58,6 +58,14 @@ $ docker run --rm -d \
tarampampam/3proxy:latest
```
## Releasing
New versions publishing is very simple - just make required changes in this repository, update [changelog file](CHANGELOG.md) and "publish" new release using repo releases page.
Docker images will be build and published automatically.
> New release will overwrite the `latest` docker image tag in both registers.
## Changes log
[![Release date][badge_release_date]][link_releases]