forked from home-assistant/iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 970 Bytes
/
push_deploy.yml
File metadata and controls
34 lines (29 loc) · 970 Bytes
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
name: Push Deploy
on:
workflow_dispatch:
inputs:
tag:
description: 'The tag to give the image'
required: true
type: string
concurrency:
group: '${{ github.workflow }}'
cancel-in-progress: true
jobs:
deploy:
name: Deploy image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Login to GitHub Container Registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: ./Sources/PushServer
push: true
tags: "ghcr.io/${{ github.repository_owner }}/ios-pushserver:${{ github.event.inputs.tag }}"