mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-18 16:03:36 +03:00
generic commit comment
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
f75254c626
commit
276b495364
1 changed files with 7 additions and 6 deletions
13
.github/workflows/build-push.yml
vendored
13
.github/workflows/build-push.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue