Skip to content

v3.1.0

v3.1.0 #1

Workflow file for this run

name: Publish
on:
release:
types:
- released
concurrency:
group: antizapret
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: xtrime
password: ${{ secrets.DOCKER_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Get Version
uses: jannemattila/get-version-from-tag@v3
id: version
- name: Extract Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
xtrime/antizapret-vpn
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,${{ steps.version.outputs.version }}
- name: Build Image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
tags: ${{ steps.meta.outputs.tags }}