diff --git a/.github/workflows/bc-mariadb-docker-publish.yaml b/.github/workflows/bc-mariadb-docker-publish.yaml new file mode 100644 index 0000000..b1dc14f --- /dev/null +++ b/.github/workflows/bc-mariadb-docker-publish.yaml @@ -0,0 +1,41 @@ +name: Backup Container Mongo - Docker Publish + +on: + release: + types: [published, edited, released] + + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_LOGIN }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Docker meta + id: meta + uses: crazy-max/ghaction-docker-meta@v2 + with: + # list of Docker images to use as base name for tags + images: | + bcgovimages/backup-container-mariadb + # generate Docker tags based on the following events/attributes + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + - name: Push to Docker Hub + uses: docker/build-push-action@v2 + with: + context: docker + tags: ${{ steps.meta.outputs.tags }} + file: Dockerfile_MariaDB + push: true \ No newline at end of file diff --git a/.github/workflows/bc-mongo-docker-publish.yaml b/.github/workflows/bc-mongo-docker-publish.yaml new file mode 100644 index 0000000..eae9ae2 --- /dev/null +++ b/.github/workflows/bc-mongo-docker-publish.yaml @@ -0,0 +1,41 @@ +name: Backup Container Mongo - Docker Publish + +on: + release: + types: [published, edited, released] + + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_LOGIN }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Docker meta + id: meta + uses: crazy-max/ghaction-docker-meta@v2 + with: + # list of Docker images to use as base name for tags + images: | + bcgovimages/backup-container-mongo + # generate Docker tags based on the following events/attributes + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + - name: Push to Docker Hub + uses: docker/build-push-action@v2 + with: + context: docker + tags: ${{ steps.meta.outputs.tags }} + file: Dockerfile_Mongo + push: true \ No newline at end of file diff --git a/.github/workflows/bc-mssql-docker-publish.yaml b/.github/workflows/bc-mssql-docker-publish.yaml new file mode 100644 index 0000000..354ecb0 --- /dev/null +++ b/.github/workflows/bc-mssql-docker-publish.yaml @@ -0,0 +1,41 @@ +name: Backup Container Mongo - Docker Publish + +on: + release: + types: [published, edited, released] + + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_LOGIN }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Docker meta + id: meta + uses: crazy-max/ghaction-docker-meta@v2 + with: + # list of Docker images to use as base name for tags + images: | + bcgovimages/backup-container-mssql + # generate Docker tags based on the following events/attributes + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + - name: Push to Docker Hub + uses: docker/build-push-action@v2 + with: + context: docker + tags: ${{ steps.meta.outputs.tags }} + file: Dockerfile_MSSQL + push: true \ No newline at end of file diff --git a/.github/workflows/bc-postgres-docker-publish.yaml b/.github/workflows/bc-postgres-docker-publish.yaml new file mode 100644 index 0000000..0094281 --- /dev/null +++ b/.github/workflows/bc-postgres-docker-publish.yaml @@ -0,0 +1,41 @@ +name: Backup Container Postgres - Docker Publish + +on: + release: + types: [published, edited, released] + + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_LOGIN }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Docker meta + id: meta + uses: crazy-max/ghaction-docker-meta@v2 + with: + # list of Docker images to use as base name for tags + images: | + bcgovimages/backup-container + # generate Docker tags based on the following events/attributes + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + - name: Push to Docker Hub + uses: docker/build-push-action@v2 + with: + context: docker + tags: ${{ steps.meta.outputs.tags }} + file: Dockerfile + push: true \ No newline at end of file