38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
|
|
|
|
name: 🚀 Release
|
|
|
|
on:
|
|
release: # Docs: <https://git.io/JeBz1#release-event-release>
|
|
types: [published]
|
|
|
|
jobs:
|
|
docker-image:
|
|
name: Build docker image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- {uses: gacts/github-slug@v1, id: slug}
|
|
- uses: docker/setup-qemu-action@v3
|
|
- uses: docker/setup-buildx-action@v3
|
|
- uses: docker/login-action@v3 # Action page: <https://github.com/docker/login-action>
|
|
with:
|
|
username: ${{ secrets.DOCKER_LOGIN }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- uses: docker/login-action@v3 # Action page: <https://github.com/docker/login-action>
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: docker/build-push-action@v6 # Action page: <https://github.com/docker/build-push-action>
|
|
with:
|
|
context: .
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: |
|
|
tarampampam/3proxy:${{ steps.slug.outputs.version-semantic }}
|
|
tarampampam/3proxy:latest
|
|
ghcr.io/${{ github.actor }}/3proxy:${{ steps.slug.outputs.version-semantic }}
|
|
ghcr.io/${{ github.actor }}/3proxy:latest
|