forked from raystack/raccoon
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.27 KB
/
Copy pathrelease.yaml
File metadata and controls
37 lines (37 loc) · 1.27 KB
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
name: Release Raccoon
on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*.*.*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
push-to-docker-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get release tag
id: get_version
uses: battila7/get-version-action@v2
- name: Login to GitHub Packages Docker Registry
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
docker.pkg.github.com/${{ github.repository }}/raccoon:latest
docker.pkg.github.com/${{ github.repository }}/raccoon:${{ steps.get_version.outputs.version-without-v }}
gotocompany/raccoon:latest
gotocompany/raccoon:${{ steps.get_version.outputs.version-without-v }}