Skip to content

Bump makeup from 1.2.1 to 1.2.2 #674

Bump makeup from 1.2.1 to 1.2.2

Bump makeup from 1.2.1 to 1.2.2 #674

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
env:
MIX_ENV: test
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1
with:
otp-version: 27.3.4.12
elixir-version: 1.18.1
- run: mix deps.get
- run: mix format --check-formatted
- run: mix deps.unlock --check-unused
- run: MIX_ENV=test mix compile --warnings-as-errors
- run: mix test
docker:
name: Docker
runs-on: ubuntu-24.04-arm
permissions:
contents: 'read'
id-token: 'write'
env:
IMAGE_NAME: 'diff'
PROJECT_ID: 'hexpm-prod'
SERVICE_ACCOUNT: ${{ secrets.GCLOUD_SERVICE_ACCOUNT }}
WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCLOUD_WORKFLOW_IDENTITY_POOL_PROVIDER }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set short git commit SHA
run: echo "COMMIT_SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Google auth
id: auth
uses: 'google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093' # v3.0.0
if: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }}
with:
token_format: 'access_token'
project_id: ${{ env.PROJECT_ID }}
service_account: ${{ env.SERVICE_ACCOUNT }}
workload_identity_provider: ${{ env.WORKLOAD_IDENTITY_PROVIDER }}
- name: Docker Auth
id: docker-auth
uses: 'docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0' # v4.4.0
if: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }}
with:
registry: gcr.io
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.access_token }}'
- name: Build and push
id: build
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
platforms: linux/arm64
tags: gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE_NAME }}:${{ env.COMMIT_SHORT_SHA }}
push: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }}
cache-from: type=gha
cache-to: type=gha,mode=max