From 475f5c3980e50d8ccda68ee6092fd199f5d9f5bd Mon Sep 17 00:00:00 2001 From: Josh Kneubuhl Date: Tue, 15 Nov 2022 08:01:50 -0500 Subject: [PATCH] test build Signed-off-by: Josh Kneubuhl --- .github/workflows/rest-sample.yaml | 70 +++++++++++++++--------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/rest-sample.yaml b/.github/workflows/rest-sample.yaml index a5c318ac..e8de704e 100644 --- a/.github/workflows/rest-sample.yaml +++ b/.github/workflows/rest-sample.yaml @@ -41,38 +41,38 @@ jobs: run: npm test working-directory: asset-transfer-basic/rest-api-typescript -# docker-image: -# runs-on: ubuntu-20.04 -# steps: -# - name: Checkout -# uses: actions/checkout@v3 -# - name: Docker meta -# id: meta -# uses: docker/metadata-action@v4 -# with: -# images: | -# ${{ env.IMAGE_NAME }} -# tags: | -# type=semver,pattern={{version}} -# type=semver,pattern={{major}}.{{minor}} -# type=semver,pattern={{major}} -# type=sha,format=long -# - name: Set up QEMU -# uses: docker/setup-qemu-action@v2 -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v2 -# - name: Login to GitHub Container Registry -# uses: docker/login-action@v2 -# with: -# registry: ghcr.io -# username: ${{ github.repository_owner }} -# password: ${{ secrets.GITHUB_TOKEN }} -# - name: Build and push -# id: push -# uses: docker/build-push-action@v3 -# with: -# context: . -# platforms: linux/amd64,linux/arm64 -# push: ${{ github.event_name != 'pull_request' }} -# tags: ${{ steps.meta.outputs.tags }} -# labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + docker-image: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + images: | + ${{ env.IMAGE_NAME }} + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha,format=long + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push + id: push + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file