Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-kumar00 authored Feb 9, 2024
1 parent 9e33cc9 commit 39d56d1
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v2

- 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 }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: surajk00/myplugin:2024-02-09-122911
load: false
no-cache: false
pull: false
github-token: ${{ secrets.DOCKER_HUB_TOKEN }}

0 comments on commit 39d56d1

Please sign in to comment.