This commit is contained in:
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY_HOST: https://git.home
|
REGISTRY_HOST: git.home
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -26,47 +26,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GIT_PASSWORD }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin
|
echo "${{ secrets.GIT_PASSWORD }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin
|
||||||
|
|
||||||
|
- name: Get short SHA
|
||||||
# - name: Extract metadata (tags, labels)
|
id: vars
|
||||||
# id: meta
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"
|
||||||
# uses: docker/metadata-action@v5
|
|
||||||
# with:
|
|
||||||
# images: |
|
|
||||||
# ${{ env.REGISTRY_HOST }}/${{ github.repository }}
|
|
||||||
# tags: |
|
|
||||||
# type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
|
||||||
# type=sha,format=short,prefix=
|
|
||||||
# type=ref,event=tag
|
|
||||||
|
|
||||||
# - name: Log in to Gitea Container Registry
|
|
||||||
# uses: docker/login-action@v3
|
|
||||||
# with:
|
|
||||||
# registry: ${{ env.REGISTRY_HOST }}
|
|
||||||
# username: ${{ gitea.actor }}
|
|
||||||
# password: ${{ secrets.GIT_PASSWORD }}
|
|
||||||
|
|
||||||
# - name: Build and push Docker image
|
|
||||||
# uses: docker/build-push-action@v6
|
|
||||||
# with:
|
|
||||||
# context: .
|
|
||||||
# push: true
|
|
||||||
# platforms: linux/amd64
|
|
||||||
# tags: ${{ gitea.actor }}/n8n-ffmpeg-proxy:${{ gitea.sha }}
|
|
||||||
# build-args: |
|
|
||||||
# USER_ID=1000
|
|
||||||
# GROUP_ID=1000
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--push \
|
--push \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
--tag drholy/n8n-ffmpeg-proxy:${{ gitea.sha }} \
|
--tag ${{ env.REGISTRY_HOST }}/drholy/n8n-ffmpeg-proxy:${{ env.sha_short }} \
|
||||||
--tag drholy/n8n-ffmpeg-proxy:latest \
|
--tag ${{ env.REGISTRY_HOST }}/drholy/n8n-ffmpeg-proxy:latest \
|
||||||
.
|
.
|
||||||
|
|
||||||
|
|
||||||
#cache-from: type=registry,ref=drholy/n8n-ffmpeg-proxy:buildcache
|
|
||||||
#cache-to: type=registry,ref=drholy/n8n-ffmpeg-proxy:buildcache,mode=max
|
|
||||||
# tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
# labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
Reference in New Issue
Block a user