-
Notifications
You must be signed in to change notification settings - Fork 448
39 lines (32 loc) · 1.09 KB
/
docker.ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
name: Docker CI
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
environment: Docker
steps:
# https://github.com/marketplace/actions/checkout
# - name: Build the Docker image
# uses: actions/checkout@v4
# run: docker build . --file Dockerfile --tag raneto/raneto:latest-$(date +%s)
# https://github.com/marketplace/actions/docker-setup-buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/marketplace/actions/docker-login
# https://github.com/docker/login-action
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
# https://github.com/marketplace/actions/build-and-push-docker-images
- name: Build and push
uses: docker/build-push-action@v5
with:
#context: .
push: true
tags: raneto/raneto:unstable