mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-18 16:03:36 +03:00
add completely untested upload-container job
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
ef26ae6a55
commit
6462327e56
1 changed files with 23 additions and 0 deletions
23
.github/workflows/build-push.yml
vendored
23
.github/workflows/build-push.yml
vendored
|
@ -8,6 +8,29 @@ on:
|
|||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
upload-container:
|
||||
name: Upload Octobot Docker container
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
environment: production
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build container
|
||||
run: docker build -t octobot -f Dockerfile .
|
||||
shell: bash
|
||||
|
||||
- name: Push container
|
||||
run: |
|
||||
echo $CR_PAT | docker login ghcr.io -u TeamOctolings --password-stdin
|
||||
docker push ghcr.io/teamoctolings/octobot:latest
|
||||
shell: bash
|
||||
env:
|
||||
CR_PAT: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
upload-solution:
|
||||
name: Upload Octobot to production
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Add table
Reference in a new issue