43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: release
|
|
|
|
on:
|
|
release: # Docs: <https://git.io/JeBz1#release-event-release>
|
|
types: [published]
|
|
|
|
jobs:
|
|
docker-image:
|
|
name: Build docker image
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
|
|
- uses: gacts/github-slug@v1
|
|
id: slug
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Login to default Container Registry
|
|
uses: docker/login-action@v2 # Action page: <https://github.com/docker/login-action>
|
|
with:
|
|
username: ${{ secrets.DOCKER_LOGIN }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v2 # Action page: <https://github.com/docker/login-action>
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: docker/build-push-action@v3 # Action page: <https://github.com/docker/build-push-action>
|
|
with:
|
|
context: .
|
|
file: Dockerfile
|
|
push: true
|
|
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
|