forked from tarantool/tarantool-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adustment for new worflow
- Loading branch information
Showing
4 changed files
with
43 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build and Push Docker Image of operator | ||
|
||
on: [push] | ||
# workflow_run: | ||
# workflows: ["Tests"] | ||
# types: | ||
# - completed | ||
# push: | ||
# tags: | ||
# - 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Create Docker config with auth | ||
run: | | ||
mkdir -p ~/.docker | ||
echo '${{ secrets.DOCKER_AUTH_CONFIG }}' > ~/.docker/config.json | ||
- name: Push docker | ||
run: | | ||
docker build -t docker-picodata.binary.picodata.io/tarantool-operator::${{ github.ref_name }} . | ||
docker --config ~/.docker/ push docker-picodata.binary.picodata.io/tarantool-operator::${{ github.ref_name }} | ||
- name: Delete docker auth config | ||
run: rm -rf ~/.docker/config.json # Clean up Docker auth credentials |
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