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.
29 lines
630 B
29 lines
630 B
name: Docker Image CI
|
|
|
|
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)
|
|
|