call make target #48
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
--- | |
name: docker | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'v*' | |
- 'private/**' | |
jobs: | |
buildx: | |
env: | |
USERNAME: ${{ secrets.QUAY_USERNAME }} | |
PASSWORD: ${{ secrets.QUAY_PASSWORD }} | |
BUILD_ARGS: "" | |
PLATFORMS: linux/amd64 | |
BRANCH: ${{ github.head_ref || github.ref_name }} | |
PUSH: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: print quay creds | |
run: | |
echo ${{ env.USERNAME }} ${{ env.PASSWORD }} | |
- name: Set env | |
run: | |
echo "TAG=$(echo "${{ env.BRANCH }}" | tr -d /)" >> $GITHUB_ENV | |
- uses: actions/checkout@v3 | |
- name: Setup Docker BuildX | |
uses: docker/setup-buildx-action@v1 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
# setup Docker buld action | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to the Quay Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: quay.io | |
username: ${{ env.USERNAME }} | |
password: ${{ env.PASSWORD }} | |
- name: Build/Push image to Docker Container Registry | |
run: | |
TEAMCITY_BUILD_ID=${{ github.run_number }} | |
make -C hostplumber img-build-push |