-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 1.04 KB
/
docker-publish.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
40
41
42
43
name: Docker
on:
schedule:
- cron: '24 1 * * 1'
push:
branches: [ "main" ]
paths:
- 'scripts/**'
- 'Dockerfile'
- 'entrypoint.sh'
- '.github/workflows/**'
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Docker
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
#username: ${{ github.actor }}
username: voxelbonecloud
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build and push
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
ghcr.io/voxelbonecloud/headless-docker:${{ github.ref_name}}