Compare commits

...

2 Commits

Author SHA1 Message Date
91ca3254a7 ops: change build for image
Some checks are pending
build abyss / build (amd64, linux) (push) Waiting to run
build abyss / build (arm64, linux) (push) Waiting to run
build abyss / build (ppc64le, linux) (push) Waiting to run
build abyss / build (riscv64, linux) (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
2024-09-06 11:15:56 -03:00
a65265af49 build: push docker images automatically 2024-09-06 11:15:43 -03:00
2 changed files with 32 additions and 1 deletions

31
.github/workflows/docker.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.jabuxas.xyz -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build and push Docker image
run: |
docker build -t git.jabuxas.xyz/jabuxas/abyss:latest .
docker push git.jabuxas.xyz/jabuxas/abyss:latest
- name: Log out of Docker registry
run: docker logout git.jabuxas.xyz

View File

@ -1,6 +1,6 @@
services:
paste:
build: .
image: git.jabuxas.xyz/jabuxas/abyss:latest
ports:
- "58080:8999"
volumes: