Skip to content

Update main.yml

Update main.yml #10

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- main
- build_action
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set timestamp as environment variable
run: echo "TAG=$(date +%Y-%m-%d-%H%M%S)" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push the Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: surajk00/myplugin:${{ env.TAG }}