Skip to content

initial commit

initial commit #2

Workflow file for this run

name: Build and Publish Image
on:
push:
branches:
- master
tags:
- '*'
jobs:
build-and-push-philomena:
name: 'Build and Publish Tinyproxy Image'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checkout repository
uses: actions/checkout@v5
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/philomena-dev/tinyproxy
- name: Build and Push Tinyproxy Image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: ${{ github.ref != 'refs/heads/master' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}