Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <[email protected]>
  • Loading branch information
R3DRUN3 committed Jan 5, 2024
1 parent 6f4a924 commit f49dd3b
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,14 @@ jobs:
# optional, default is latest
copa-version: '0.3.0'

- name: Modify Patched Image Names
id: modify_images
run: |
PATCHED_IMAGES=""
for image in ${{ matrix.images }}; do
# Modify image names based on your requirements
patched_image="r3drun3/$(basename $image)-immunized"
PATCHED_IMAGES="$PATCHED_IMAGES $patched_image"
done
echo $PATCHED_IMAGES
echo "patched_images=$PATCHED_IMAGES" >> $GITHUB_ENV
- name: Login to Docker Hub
if: steps.copa.conclusion == 'success'
id: login
uses: docker/login-action@b4bedf8053341df3b5a9f9e0f2cf4e79e27360c6
- name: Log into ghcr
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
with:
username: r3drun3
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Push Patched Images
- name: Docker Push Patched Image
if: steps.login.conclusion == 'success'
run: |
for patched_image in ${{ steps.modify_images.outputs.patched_images }}; do
docker push $patched_image
done
docker push ${{ steps.copa.outputs.patched-image }}

0 comments on commit f49dd3b

Please sign in to comment.