forked from home-assistant/iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 969 Bytes
/
push_deploy.yml
File metadata and controls
34 lines (29 loc) · 969 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@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with:
context: ./Sources/PushServer
push: true
tags: "ghcr.io/${{ github.repository_owner }}/ios-pushserver:${{ github.event.inputs.tag }}"