Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Update Chizkiyahu/delete-untagged-ghcr-action action to v4 (#16) #34

Update Chizkiyahu/delete-untagged-ghcr-action action to v4 (#16)

Update Chizkiyahu/delete-untagged-ghcr-action action to v4 (#16) #34

Workflow file for this run

name: Build Release
on:
push:
tags:
- "*"
env:
ProjectName: shadowsocks
Owner: hmbsbige # ${{ github.repository_owner }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/${{ env.Owner }}/${{ env.ProjectName }}:${{ github.ref_name }}
ghcr.io/${{ env.Owner }}/${{ env.ProjectName }}:latest
platforms: linux/amd64,linux/arm64
build-args: |
GO_VERSION=1.16
V2RAY_PLUGIN_VERSION=v1.3.2
SS_RUST_VERSION=v${{ github.ref_name }}