Skip to content

Build and push images #1

Build and push images

Build and push images #1

Workflow file for this run

name: "Build and push images"
on:
workflow_dispatch:
jobs:
Building:
runs-on: ubuntu-latest
name: "Build images"
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:v1
steps:
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name: Push images to Docker hub
uses: docker/[email protected]
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ env.DOCKERHUB_REPOSITORY }}