Skip to content

Update dockerBuild yaml #3

Update dockerBuild yaml

Update dockerBuild yaml #3

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
env:
IMAGE_NAME: 8fforg/firescrew
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: docker/Dockerfile
platforms: linux/arm64,linux/amd64
push: true
tags: ${{ env.IMAGE_NAME }}:latest
- name: Logout from Docker Hub
run: docker logout