Skip to content

Upgrade node packages and GitHub Actions workflow #2

Upgrade node packages and GitHub Actions workflow

Upgrade node packages and GitHub Actions workflow #2

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ main ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Declare commit hash variable
id: hash
shell: bash
run: echo "::set-output name=short::$(git rev-parse --short HEAD)"
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: zahlex/talking-numbers:latest,zahlex/talking-numbers:${{ steps.hash.outputs.short }}