forked from opengate-network/traefik-forward-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 971 Bytes
/
docker-release.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: Deploy for docker image
on:
push:
branches: ["master"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: traefik-forward-auth
IMAGE_NAME_FULL: ghcr.io/nbtca/traefik-forward-auth
jobs:
Build-and-Push-to-DockerHub:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
with:
ref: "master"
- name: Login DockerHub
uses: docker/#-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push to DockerHub
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
no-cache: true
# target: deploy
push: true
platforms: linux/amd64
tags: |
${{ env.IMAGE_NAME_FULL }}
${{ env.IMAGE_NAME_FULL }}:latest