Skip to content

Add logs on mod insert and update, also clean-up #115

Add logs on mod insert and update, also clean-up

Add logs on mod insert and update, also clean-up #115

name: Branch - Hawk Build and push docker image ARM64
on:
push:
branches:
- "POP-2892/setup-importer-for-dev"
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-cpu
jobs:
docker:
timeout-minutes: 40
runs-on:
labels: arm64-ubuntu-22.04-16core
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Docker
run: |
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
sudo apt-get install acl
sudo setfacl --modify user:$USER:rw /var/run/docker.sock
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2
- name: Log in to the Container registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
platforms: linux/arm64
build-args: |
ARCHITECTURE=aarch64
cache-from: type=gha
cache-to: type=gha,mode=max
file: Dockerfile.arm64.hawk