Skip to content

Commit

Permalink
Add Docker Hub upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonvanAs authored Mar 29, 2024
1 parent a977f77 commit 0edf839
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,23 @@ on:

jobs:

build:

build-and-push-docker:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag devolo-cockpit:$(date +%s)
- name: Check Out Repository
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: slompies/homelab:devolo-cockpit:$(date +%s)

0 comments on commit 0edf839

Please sign in to comment.