- Set Spanish as default language with ephemeral/encrypted privacy focus - Translate all user-facing strings and legal pages to Spanish - Replace Norwegian flag with Spanish flag in footer - Remove Hemmelig/terces.cloud links, add cloudhost.es sponsorship - Rewrite PrivacyPage: zero data collection, ephemeral design emphasis - Rewrite TermsPage: Spanish law, RGPD, paste.es/CloudHost.es references - Update PWA manifest, HTML meta tags, package.json branding - Rename webhook headers to X-Paste-Event / X-Paste-Signature - Update API docs title and contact to paste.es / cloudhost.es Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
60 lines
2.1 KiB
YAML
60 lines
2.1 KiB
YAML
name: Publish Docker image
|
|
on:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
push_to_registry:
|
|
name: Push Docker image to Docker Hub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Setup Docker buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Get latest git tag
|
|
id: latest_tag
|
|
uses: 'WyriHaximus/github-action-get-previous-tag@v1'
|
|
with:
|
|
fallback: no-tag
|
|
|
|
- name: Get short SHA
|
|
id: short_sha
|
|
run: echo "sha=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Get major version
|
|
id: major_version
|
|
run: |
|
|
echo "version=$(echo ${{ steps.latest_tag.outputs.tag }} | cut -d'.' -f1)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Get minor version
|
|
id: minor_version
|
|
run: |
|
|
echo "version=$(echo ${{ steps.latest_tag.outputs.tag }} | cut -d'.' -f1,2)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Build and push multi-arch image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: |
|
|
hemmeligapp/hemmelig:${{ steps.latest_tag.outputs.tag }}
|
|
hemmeligapp/hemmelig:${{ steps.minor_version.outputs.version }}
|
|
hemmeligapp/hemmelig:${{ steps.major_version.outputs.version }}
|
|
build-args: |
|
|
GIT_SHA=${{ steps.short_sha.outputs.sha }}
|
|
GIT_TAG=${{ steps.latest_tag.outputs.tag }}
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|