Skip to content

Build and push docker image #20

Build and push docker image

Build and push docker image #20

Workflow file for this run

name: Build and push docker image
on:
push:
branches:
- master
schedule:
- cron: '30 4 1 * *'
jobs:
build:
name: Build and push to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login in Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push image to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: soulwing/cas-mock-server:latest