Skip to content

Upgrade

Upgrade #12

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
tags:
- 'v*'
pull_request:
branches: [ "*" ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
labels: |
maintainer=The Dockage Developers
images: |
dockage/tor-privoxy
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=pr
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build images
uses: docker/bake-action@v2
with:
push: ${{ github.ref_name == github.event.repository.default_branch }}
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
if: ${{ github.event_name == 'push' && github.ref_name == github.event.repository.default_branch }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
short-description: ${{ github.event.repository.description }}