Skip to content

Commit

Permalink
generic commit comment
Browse files Browse the repository at this point in the history
Signed-off-by: mctaylors <[email protected]>
  • Loading branch information
mctaylors committed Oct 27, 2024
1 parent f75254c commit 276b495
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,27 @@ jobs:
uses: actions/checkout@v4

- name: Build container
run: docker build -t octobot -f Dockerfile .
run: docker build --build-arg PUBLISH_OPTIONS=$PUBLISH_OPTIONS -t $IMAGE_NAME -f Dockerfile .
shell: bash
env:
PUBLISH_OPTIONS: ${{vars.PUBLISH_OPTIONS}}
IMAGE_NAME: ${{vars.IMAGE_NAME}}

- name: Push container
run: |
echo $CR_PAT | docker login ghcr.io -u TeamOctolings --password-stdin
docker push ghcr.io/teamoctolings/octobot:latest
docker push ghcr.io/$NAMESPACE/$IMAGE_NAME:latest
shell: bash
env:
CR_PAT: ${{secrets.GITHUB_TOKEN}}
NAMESPACE: ${{vars.NAMESPACE}}
IMAGE_NAME: ${{vars.IMAGE_NAME}}

upload-solution:
name: Upload Octobot to production
runs-on: ubuntu-latest
environment: production

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup SSH key
run: |
install -m 600 -D /dev/null ~/.ssh/id_ed25519
Expand Down

0 comments on commit 276b495

Please sign in to comment.