Skip to content

Merge pull request #66 from hostwithquantum/updatecli_main_c3f260af5e… #78

Merge pull request #66 from hostwithquantum/updatecli_main_c3f260af5e…

Merge pull request #66 from hostwithquantum/updatecli_main_c3f260af5e… #78

Workflow file for this run

name: build
on:
pull_request:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }}
- id: meta
uses: docker/metadata-action@v5
with:
images: |
name=ghcr.io/${{ github.repository }}
name=runwaypaas/hugo-docker
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: 'true'