Skip to content

Commit 658dccf

Browse files
authored
Create docker-images, and stuff (#4)
* Create docker-images, and stuff Built with Docker repository at Amilie and also, https://docs.docker.com/build/ci/github-actions/ * Update docker-image.yml
1 parent f5a0174 commit 658dccf

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Log in to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
25+
- name: Build and push Docker image
26+
uses: docker/build-push-action@v5
27+
with:
28+
context: .
29+
file: ./Dockerfile
30+
push: ${{ github.event_name == 'push' }}
31+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/fluxer-bot:latest
32+
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/fluxer-bot:buildcache
33+
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/fluxer-bot:buildcache,mode=max

0 commit comments

Comments
 (0)