-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.92 KB
/
update_pango-collapse.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Update pango-collapse
on:
workflow_dispatch:
schedule:
- cron: '30 5 * * TUE'
run-name: Updating pango-collapse
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Get latest release
uses: rez0n/actions-github-release@main
id: latest_release
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: MDU-PHL/pango-collapse
type: "stable"
- uses: actions/checkout@v3
- name: Remove V
id: strip
run: |
version=$(echo "${{ steps.latest_release.outputs.release }}" | sed 's/V//g' | sed 's/v//g' )
echo "The version is $version"
echo "version=$version" >> $GITHUB_OUTPUT
- name: pull repo
uses: actions/checkout@v3
- name: Get current date
id: date
run: |
date=$(date '+%Y-%m-%d')
echo "the date is $date"
echo "date=$date" >> $GITHUB_OUTPUT
- name: check paths
run: ls && ls ./pango-collapse
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and push to Quay
uses: docker/build-push-action@v3
with:
file: ./pango-collapse/Dockerfile
build-args: VER=${{ steps.strip.outputs.version }}
push: true
tags: quay.io/uphl/pango-collapse:${{ steps.strip.outputs.version }}-${{ steps.date.outputs.date }}
- name: Build and push latest tag to Quay
uses: docker/build-push-action@v3
with:
file: ./pango-collapse/Dockerfile
build-args: VER=${{ steps.strip.outputs.version }}
push: true
tags: quay.io/uphl/pango-collapse:latest