Create docker-push.yml

This commit is contained in:
2023-06-12 02:43:43 +10:00
committed by GitHub
parent f40610ec02
commit bd629bf9fe

26
.github/workflows/docker-push.yml 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 }}