Skip to content

Commit

Permalink
Merge pull request #19 from xtuml/18-github-actions-build-pushyml-req…
Browse files Browse the repository at this point in the history
…uires-updating-to-opensource-repo

Update build-push.yml to opensource repo path and remove SSH
  • Loading branch information
ZacDCSIT authored May 16, 2024
2 parents 6131a39 + 79f6e83 commit 3b98ad3
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ on:
jobs:
build-and-push:
if: |
github.repository == 'SmartDCSITlimited/test-harness'
github.repository == 'xtuml/erebus'
&& github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
env:
SSH_AUTH_SOCK: $SSH_AUTH_SOCK
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -26,23 +24,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install ssh-agent
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.TEST_EVENT_GENERATOR_DEPLOY_KEY }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/SmartDCSITlimited/test-harness
images: ghcr.io/xtuml/erebus

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
ssh: |
default
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 3b98ad3

Please sign in to comment.