Skip to content

Commit

Permalink
Merge pull request #97 from WadeBarnes/update-actions
Browse files Browse the repository at this point in the history
Update GHA workflows
  • Loading branch information
WadeBarnes committed Dec 28, 2022
2 parents de2889e + 9ebcb9e commit 7d487af
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/bc-mariadb-docker-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Backup Container MariaDB - Docker Publish

on:
on:
release:
types: [published, edited]


jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -33,7 +33,7 @@ jobs:
type=semver,pattern={{major}}
type=sha
- name: Push to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
tags: ${{ steps.meta.outputs.tags }}
file: docker/Dockerfile_MariaDB
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/bc-mongo-docker-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Backup Container Mongo - Docker Publish

on:
on:
release:
types: [published, edited]


jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -33,10 +33,9 @@ jobs:
type=semver,pattern={{major}}
type=sha
- name: Push to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
tags: ${{ steps.meta.outputs.tags }}
file: docker/Dockerfile_Mongo
context: docker
push: true

12 changes: 6 additions & 6 deletions .github/workflows/bc-mssql-docker-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Backup Container MSSQL - Docker Publish

on:
on:
release:
types: [published, edited]


jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -33,7 +33,7 @@ jobs:
type=semver,pattern={{major}}
type=sha
- name: Push to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
tags: ${{ steps.meta.outputs.tags }}
file: docker/Dockerfile_MSSQL
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/bc-postgres-docker-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Backup Container Postgres - Docker Publish

on:
on:
release:
types: [published, edited]


jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -33,7 +33,7 @@ jobs:
type=semver,pattern={{major}}
type=sha
- name: Push to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
tags: ${{ steps.meta.outputs.tags }}
file: docker/Dockerfile
Expand Down

0 comments on commit 7d487af

Please sign in to comment.