-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.07 KB
/
tag.yaml
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
name: "Release a tag"
on:
push:
tags:
- '*'
jobs:
docker-release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to docker.io
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and publish
uses: docker/build-push-action@v4
with:
context: .
file: build/protty/Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v8
push: true
tags: mgerasimchuk/protty:${{ github.ref_name }}
docker-publish-readme:
runs-on: ubuntu-22.04
needs: docker-release
steps:
- uses: actions/checkout@v3
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: mgerasimchuk/protty