Skip to content

Commit

Permalink
- ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
athphane committed Oct 4, 2023
1 parent 4e98895 commit 82a3449
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Build

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

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

- name: Build and push Docker image
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAME: userbot
run: |
docker build -f .build/Dockerfile -t ghcr.io/$DOCKER_USERNAME/$IMAGE_NAME ..
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push $DOCKER_USERNAME/$IMAGE_NAME

0 comments on commit 82a3449

Please sign in to comment.