Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/add_agents' into add_agents
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim145 committed Feb 14, 2024
2 parents b233225 + 030f3a8 commit 54cad9c
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: Docker Image CI
name: publish basic container

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [published]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file DatabaseBackupManager/Dockerfile --tag my-image-name:$(date +%s)
- uses: actions/checkout@v3

- name: Login to Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: "DatabaseBackupManager/Dockerfile"
platforms: linux/amd64
push: true
tags: |
dim145/backup-manager:latest
dim145/backup-manager:${{ github.ref_name }}

0 comments on commit 54cad9c

Please sign in to comment.