Skip to content

fix available memory. was using free memory as avail #24

fix available memory. was using free memory as avail

fix available memory. was using free memory as avail #24

name: Container Image CI
on:
push:
branches: [ "**"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: Docker meta
id: docker-meta-id # you'll use this in the next step
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/nicenode/speedometer-dev
# Docker tags based on the following events/attributes
tags: |
dev
${{steps.package-version.outputs.current-version}}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: jgresham
password: ${{ secrets.GH_PUSH_PACKAGES }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: Containerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker-meta-id.outputs.tags }}
labels: ${{ steps.docker-meta-id.outputs.labels }}
# - uses: actions/checkout@v3
# - run: |
# sudo apt-get update
# - name: Build the Container image
# run: docker buildx build . --platform linux/arm64, linux/amd64 --file Containerfile --tag nicenode/speedometer:$(date +%s)