-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.18 KB
/
main.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
name: tag test
on:
push:
tags:
- '*'
env:
REGISTRY_USER: rhn_support_lul
IMAGE_REGISTRY: quay.io
REGISTRY_PASSWORD: ${{ secrets.password }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
go:
- '1.20'
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: login quay
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
- name: write script
run: |
cat > build-qe-images.sh << EOF
echo $1
echo "success"
echo "test"
EOF
shell: bash
- name: run ls
run: ls
- name: check script
run: |
cat build-qe-images.sh
chmod +x build-qe-images.sh
shell: bash
- name: run script
env:
TAG_CONTEXT: ${{ toJson(github.ref_name) }}
run: |
echo "$TAG_CONTEXT"
./build-qe-images.sh $TAG_CONTEXT
shell: bash