Skip to content

Log into Docker before pushing #2

Log into Docker before pushing

Log into Docker before pushing #2

Workflow file for this run

name: Build & Push Docker Image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: instedd/ruby:1.9
platforms: linux/amd64,linux/arm64
context: "{{defaultContext}}:ruby-1.9"