Skip to content

Version bump

Version bump #5

Workflow file for this run

name: ci
on:
push:
branches:
- "master"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Determine package.json version as DOCKER_IMAGE_TAG environment variable
run: echo "DOCKER_IMAGE_TAG=$(jq -r '.version' package.json)" >> $GITHUB_ENV
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USER }}
password: ${{ secrets.DOCKER_OAT }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: cloud
endpoint: "reelyactive/pareto-anywhere"
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
tags: "${{ vars.DOCKER_USER }}/pareto-anywhere:${{ env.DOCKER_IMAGE_TAG }}"
# For pull requests, export results to the build cache.
# Otherwise, push to a registry.
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }}