Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentberry authored Jan 3, 2024
1 parent 576b68b commit 6b00c9b
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
name: Build and Push Docker Image
name: Docker Image CI

on:
push:
branches:
- main
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to Docker Hub
run: docker login -u ${{ DockerHub.DOCKERHUB_USERNAME }} -p ${{ DockerHub.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
run: |
docker build -t ${{ DockerHub.DOCKERHUB_USERNAME }}/ddns-online-scaleway:latest .
docker push ${{ DockerHub.DOCKERHUB_USERNAME }}/ddns-online-scaleway:latest
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ddns-online-scaleway:$(date +%s)

0 comments on commit 6b00c9b

Please sign in to comment.