Create docker-image.yml

This commit is contained in:
Elias Stepanik 2023-02-01 08:14:47 +01:00 committed by GitHub
parent 3002c0b091
commit 417cf73a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/docker-image.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build_n_push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag saile2204/ionos_ddns_updater:$(date +%s)
- name: Dockerhub Login
run: docker login --username=${DOCKERUSERNAME} --password=${DOCKERPASSWORD}
- name: Push to Dockerhub
run: docker push saile2204/ionos_ddns_updater:$(date +%s)