Skip to content

Commit bd629bf

Browse files
authored
Create docker-push.yml
1 parent f40610e commit bd629bf

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docker-push.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docker
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
14+
- name: Log into Docker registry
15+
uses: docker/login-action@v1
16+
with:
17+
registry: docker.io
18+
username: ${{ secrets.DOCKER_USERNAME }}
19+
password: ${{ secrets.DOCKER_PASSWORD }}
20+
21+
- name: Build and push Docker image
22+
uses: docker/build-push-action@v2
23+
with:
24+
context: .
25+
push: true
26+
tags: ${{ github.repository }}:${{ github.sha }}

0 commit comments

Comments
 (0)