-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* OS-4 | Introduce new root command and more tests * change GH action * add more tests * fix lints * fix more lints
- Loading branch information
Hakan Kurtulus
authored
Jun 1, 2021
1 parent
2479ebe
commit 9c6518c
Showing
27 changed files
with
613 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,31 +12,32 @@ jobs: | |
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Import Secrets | ||
id: secrets | ||
uses: hashicorp/[email protected] | ||
with: | ||
url: ${{ secrets.VAULT_ADDR }} | ||
method: github | ||
githubToken: ${{ secrets.GT_VAULT_AUTH_TOKEN }} | ||
secrets: | | ||
github/data/token registry_write | GITHUB_REGISTRY_TOKEN ; | ||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Build and push to Docker | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
push: true | ||
tags: omegion/db-backup:${{ steps.get_version.outputs.VERSION }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to GitHub | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.CR_PAT }} | ||
password: ${{ steps.secrets.outputs.GITHUB_REGISTRY_TOKEN }} | ||
|
||
- name: Build and push to GitHub | ||
id: github_build | ||
|
@@ -45,7 +46,8 @@ jobs: | |
context: ./ | ||
file: ./Dockerfile | ||
push: true | ||
tags: ghcr.io/omegion/db-backup:${{ steps.get_version.outputs.VERSION }} | ||
tags: ghcr.io/omegion/db-backup:latest,ghcr.io/omegion/db-backup:${{ steps.get_version.outputs.VERSION }} | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Build Changelog | ||
id: github_release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.