Skip to content

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rn0 committed Mar 24, 2024
1 parent d5ce61e commit a23dfee
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 34 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Docker Image CI
name: Build Docker Image

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# pull_request:
# branches: [ "main" ]

jobs:

Expand All @@ -13,6 +13,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/lanops-discord-bot:$(date +%s)
28 changes: 0 additions & 28 deletions .github/workflows/go.yml

This file was deleted.

0 comments on commit a23dfee

Please sign in to comment.