-
Notifications
You must be signed in to change notification settings - Fork 446
45 lines (39 loc) · 1.4 KB
/
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
44
45
---
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
name: Docker Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true
default: 'latest'
jobs:
build:
runs-on: ubuntu-latest
environment: Docker
steps:
# https://github.com/marketplace/actions/checkout
# - name: Build the Docker image
# uses: actions/[email protected]
# run: docker build . --file Dockerfile --tag raneto/raneto:latest-$(date +%s)
# https://github.com/marketplace/actions/docker-setup-buildx
- name: Set up Docker Buildx
uses: docker/[email protected]
# https://github.com/marketplace/actions/docker-login
# https://github.com/docker/login-action
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
# https://github.com/marketplace/actions/build-and-push-docker-images
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
- name: Build and push "version"
uses: docker/[email protected]
with:
#context: .
push: true
tags:
- 'raneto/raneto:${{ github.event.inputs.version }}'
- 'raneto/raneto:latest'