Skip to content

Merge pull request #49 from mobiera/fix/certificator-wording #30

Merge pull request #49 from mobiera/fix/certificator-wording

Merge pull request #49 from mobiera/fix/certificator-wording #30

name: Docker image (dev)
# Tagging policy, as in the other Mobiera repositories:
# - push to main -> mobiera/website:dev (this workflow)
# - GitHub release -> mobiera/website:main, :latest, :vX.Y.Z, :vX.Y (release-please.yml)
# Releases are created by release-please with the default GITHUB_TOKEN, whose
# events do not trigger other workflows, so the release images are built there.
on:
push:
branches: [main]
env:
IMAGE: mobiera/website
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Docker Hub login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_LOGIN }}
password: ${{ secrets.DOCKER_HUB_PWD }}
- name: Build and push ${{ env.IMAGE }}:dev
uses: docker/build-push-action@v6
with:
context: .
target: runner
push: true
tags: ${{ env.IMAGE }}:dev
cache-from: type=gha
cache-to: type=gha,mode=max
# Repository variables (Settings > Secrets and variables > Actions > Variables).
# Both are public values, inlined at build time; leave unset to keep the
# defaults (canonical origin https://mobiera.io, analytics off).
build-args: |
SITE_URL=${{ vars.SITE_URL || 'https://mobiera.io' }}
NEXT_PUBLIC_GA_ID=${{ vars.NEXT_PUBLIC_GA_ID }}