-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
38 lines (36 loc) · 1.04 KB
/
action.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
name: '@actalog/dockerfile-cd'
description: Publishes a Docker image to a Docker registry
author: Gabriel Rufino <[email protected]>
branding:
icon: package
color: blue
inputs:
image-name:
required: true
image-version:
required: true
registry-username:
required: true
registry-token:
required: true
runs:
using: composite
steps:
- uses: satackey/[email protected]
continue-on-error: true
- run: |
docker image build \
-t ${{ inputs.image-name }}:latest \
-t ${{ inputs.image-name }}:${{ inputs.image-version }} \
.
shell: bash
- run: docker login -u ${{ inputs.registry-username }} -p ${{ inputs.registry-token }}
shell: bash
- run: docker image push -a ${{ inputs.image-name }}
shell: bash
- uses: peter-evans/dockerhub-description@v3
with:
username: ${{ inputs.registry-username }}
password: ${{ inputs.registry-token }}
repository: ${{ github.repository }}
continue-on-error: true