Update main.yml #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
name=v"\${1}" | |
echo \${1} | |
echo $name | |
echo "test" | |
podman pull quay.io/rhn_support_lul/mytest1:v1 | |
podman images | |
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 | |