Skip to content

Fix Dapperfile

Fix Dapperfile #7

Workflow file for this run

on:
push:
tags:
- "v*"
name: Release EL7
permissions:
contents: write
id-token: write
jobs:
release-rpm-el7:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: "Read secrets"
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/aws-access-key-id/credentials token | AWS_ACCESS_KEY_ID ;
secret/data/github/repo/${{ github.repository }}/aws-s3-bucket/credentials token | AWS_S3_BUCKET ;
secret/data/github/repo/${{ github.repository }}/aws-secret-access-key/credentials token | AWS_SECRET_ACCESS_KEY ;
secret/data/github/repo/${{ github.repository }}/private-key/credentials token | PRIVATE_KEY ;
secret/data/github/repo/${{ github.repository }}/private-key-pass-phrase/credentials token | PRIVATE_KEY_PASS_PHRASE ;
secret/data/github/repo/${{ github.repository }}/testing-aws-s3-bucket/credentials token | TESTING_AWS_S3_BUCKET ;
secret/data/github/repo/${{ github.repository }}/testing-aws-access-key-id/credentials token | TESTING_AWS_ACCESS_KEY_ID ;
secret/data/github/repo/${{ github.repository }}/testing-aws-secret-access-key/credentials token | TESTING_AWS_SECRET_ACCESS_KEY ;
secret/data/github/repo/${{ github.repository }}/testing-private-key/credentials token | TESTING_PRIVATE_KEY ;
secret/data/github/repo/${{ github.repository }}/testing-private-key-pass-phrase/credentials token | TESTING_PRIVATE_KEY_PASS_PHRASE ;
- name: build-rpm-el7
run: |
make centos7-build
- name: sign-rpm-el7
run: |
make centos7-sign
env:
PRIVATE_KEY: "${{ env.PRIVATE_KEY }}"
PRIVATE_KEY_PASS_PHRASE: "${{ env.PRIVATE_KEY_PASS_PHRASE }}"
TESTING_PRIVATE_KEY: "${{ env.TESTING_PRIVATE_KEY }}"
TESTING_PRIVATE_KEY_PASS_PHRASE: "${{ env.TESTING_PRIVATE_KEY_PASS_PHRASE }}"
- name: upload-repo-el7
run: |
make centos7-upload-repo
env:
COMBARCH: x86_64-amd64
AWS_S3_BUCKET: "${{ env.AWS_S3_BUCKET }}"
AWS_ACCESS_KEY_ID: "${{ env.AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ env.AWS_SECRET_ACCESS_KEY }}"
TESTING_AWS_S3_BUCKET: "${{ env.TESTING_AWS_S3_BUCKET }}"
TESTING_AWS_ACCESS_KEY_ID: "${{ env.TESTING_AWS_ACCESS_KEY_ID }}"
TESTING_AWS_SECRET_ACCESS_KEY: "${{ env.TESTING_AWS_SECRET_ACCESS_KEY }}"
- name: checksum-rpm-el7
run: |
make checksum
env:
DEST_DIR: dist/centos7/noarch/
CHECKSUM_METHOD: sha256
CHECKSUM_FILE: CHECKSUMsum-centos7-noarch.txt
- name: checksum-srcrpm-el7
run: |
make checksum
env:
DEST_DIR: dist/centos7/source
CHECKSUM_METHOD: sha256
CHECKSUM_FILE: CHECKSUMsum-centos7-noarch.txt
- name: github-rpm-release-el7
uses: softprops/action-gh-release@v2
with:
files: |
"dist/centos7/noarch/*"
"dist/centos7/source/*"