Create docker-image.yml

This commit is contained in:
Thegan Govender
2023-04-02 22:23:59 +02:00
committed by GitHub
parent e1260c75ce
commit 10983421a0

24
.github/workflows/docker-image.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Docker CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: cyfershepard/jellystat:latest