From 9890231010e0335513dad85ddf2932e5baf8a890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ari=20melody=20=F0=9F=92=AB?= Date: Sat, 22 Jun 2024 02:50:10 +0100 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..00d6a78 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,25 @@ +name: Docker CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: docker.arimelody.me + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASSWORD }} + - + name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: docker.arimelody.me/openterminal:$(date +%s)