Skip to content

Commit

Permalink
added docker-build to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeneghini committed Jan 20, 2024
1 parent cba5fb9 commit 5071db6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
name: Docker Build
name: Docker Build and Push

on:
push:
branches:
- main

jobs:
build-and-push:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push Docker image
- name: Build and push multi-architecture image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: jmeneghini/midsx_ubuntu:latest
tags: jmeneghini/midsx:latest
platforms: linux/amd64,linux/arm64

0 comments on commit 5071db6

Please sign in to comment.