mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33: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
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build container
|
- 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
|
shell: bash
|
||||||
|
env:
|
||||||
|
PUBLISH_OPTIONS: ${{vars.PUBLISH_OPTIONS}}
|
||||||
|
IMAGE_NAME: ${{vars.IMAGE_NAME}}
|
||||||
|
|
||||||
- name: Push container
|
- name: Push container
|
||||||
run: |
|
run: |
|
||||||
echo $CR_PAT | docker login ghcr.io -u TeamOctolings --password-stdin
|
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
|
shell: bash
|
||||||
env:
|
env:
|
||||||
CR_PAT: ${{secrets.GITHUB_TOKEN}}
|
CR_PAT: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
NAMESPACE: ${{vars.NAMESPACE}}
|
||||||
|
IMAGE_NAME: ${{vars.IMAGE_NAME}}
|
||||||
|
|
||||||
upload-solution:
|
upload-solution:
|
||||||
name: Upload Octobot to production
|
name: Upload Octobot to production
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
||||||
run: |
|
run: |
|
||||||
install -m 600 -D /dev/null ~/.ssh/id_ed25519
|
install -m 600 -D /dev/null ~/.ssh/id_ed25519
|
||||||
|
|
Loading…
Add table
Reference in a new issue