Skip to content

distro: Improve Kubuntu instructions #182

distro: Improve Kubuntu instructions

distro: Improve Kubuntu instructions #182

Workflow file for this run

name: "Build and deploy"
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle install
- run: bundle exec middleman build
- id: variables
run: |
[[ ! -f .ruby-version ]] && exit 1
RUBY_VERSION="$(< .ruby-version)"
echo "::set-output name=RUBY_VERSION::${RUBY_VERSION}"
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v4
with:
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/flatpak/flatpak.github.io:${{ github.sha }}
ghcr.io/flatpak/flatpak.github.io:latest
build-args: |
RUBY_VERSION=${{ steps.variables.outputs.RUBY_VERSION }}
labels: |
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.source=ssh://[email protected]:${{ github.repository }}.git
org.opencontainers.image.url=https://github.com/${{ github.repository }}
cache-from: type=gha
cache-to: type=gha,mode=max