Create Docker Push

This commit is contained in:
2023-06-12 02:43:01 +10:00
committed by GitHub
parent d8787bd303
commit 9612d9b7c8

26
.github/workflows/Docker Push vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Docker
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into Docker registry
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ github.repository }}:${{ github.sha }}