Skip to content

Skip 4.2.2

Skip 4.2.2 #63

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- 'develop'
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.2', '3.3']
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Show repository information
run: task info
- name: Run tests
run: task test
- name: Coveralls
uses: coverallsapp/github-action@v2
release:
if: github.ref == 'refs/heads/develop' || ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
needs: test
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build and release gem
run: task gem:build gem:push
docker:
if: github.ref == 'refs/heads/develop' || ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
needs: test
steps:
- name: Git describe
id: ghd
uses: proudust/gh-describe@v2
- name: Check outputs
run: |
echo "describe: ${{ steps.ghd.outputs.describe }}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
docker.io/aksw/jekyll-rdf
ghcr.io/aksw/jekyll-rdf
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/arm64/v8
build-args: VERSION=${{ steps.ghd.outputs.describe }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}