Skip to content

Commit

Permalink
ci: migrate to docker compose v2 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
libvoid committed Oct 1, 2024
1 parent d708913 commit f06b2eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# build
FROM golang:1.23 as builder
FROM docker.io/golang:1.23 as builder
WORKDIR /go/src/sshportal
COPY . ./
RUN go build -ldflags="-X main.GitSha=$(git rev-parse --short HEAD) -X main.GitTag=$(git describe --tags --always) -extldflags '-static' -w -s" -tags osusergo,netgo,sqlite_omit_load_extension -v -o /go/bin/sshportal
Expand Down
14 changes: 7 additions & 7 deletions examples/integration/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
run:
docker-compose down
docker-compose up -d sshportal
docker-compose build client
docker-compose exec -T sshportal /bin/sshportal healthcheck --wait --quiet
docker-compose run client /integration/_client.sh
docker-compose down
docker compose down
docker compose up -d sshportal
docker compose build client
docker compose exec -T sshportal /bin/sshportal healthcheck --wait --quiet
docker compose run client /integration/_client.sh
docker compose down

build:
docker-compose build
docker compose build
2 changes: 0 additions & 2 deletions examples/integration/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
sshportal:
build:
Expand Down

0 comments on commit f06b2eb

Please sign in to comment.