You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
909 B
35 lines
909 B
name: Docker Compose Test
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- uses: actions/checkout@v4
|
|
# - name: Build and push Docker images
|
|
# uses: docker/build-push-action@v6.10.0
|
|
# with:
|
|
# push: true
|
|
# tags: h4ckermike/swarms-api:experimental
|
|
# - name: Build the Docker image
|
|
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
|
- uses: adambirds/docker-compose-action@v1.5.0
|
|
with:
|
|
compose-file: "./docker-compose.yml"
|
|
up-flags: "--build"
|
|
down-flags: "--volumes"
|
|
#test-container: "test-container"
|
|
#test-command: "npm test"
|