From 0ebda20234e5591aa1da087039d463c23784138a Mon Sep 17 00:00:00 2001 From: NhanPT Date: Tue, 4 Oct 2022 11:59:06 +0700 Subject: [PATCH] action build ok --- .github/workflows/docker-build-dev.yml | 52 +++++++++++++------------- .github/workflows/docker-build.yml | 50 ++++++++++++------------- .github/workflows/release-build.yml | 8 +--- 3 files changed, 53 insertions(+), 57 deletions(-) diff --git a/.github/workflows/docker-build-dev.yml b/.github/workflows/docker-build-dev.yml index fd9b142..8af77cf 100644 --- a/.github/workflows/docker-build-dev.yml +++ b/.github/workflows/docker-build-dev.yml @@ -1,28 +1,28 @@ -# name: docker build +name: docker build dev -# on: -# push: -# branches: -# - "main" +on: + push: + branches: + - "main" -# jobs: -# docker: -# runs-on: ubuntu-latest -# steps: -# - name: Set up QEMU -# uses: docker/setup-qemu-action@v1 -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v1 -# - name: Login to DockerHub -# uses: docker/login-action@v1 -# with: -# username: ${{ secrets.DOCKERHUB_USERNAME }} -# password: ${{ secrets.DOCKERHUB_TOKEN }} -# - name: Build and push -# uses: docker/build-push-action@v2 -# with: -# platforms: |- -# linux/amd64 -# linux/arm64 -# push: true -# tags: help14/ocean:dev +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + platforms: |- + linux/amd64 + linux/arm64 + push: true + tags: help14/ocean:dev diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 52bbc6f..f178f40 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -1,27 +1,27 @@ -# name: docker build +name: docker build release -# on: -# release: -# types: [created] +on: + release: + types: [created] -# jobs: -# docker: -# runs-on: ubuntu-latest -# steps: -# - name: Set up QEMU -# uses: docker/setup-qemu-action@v1 -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v1 -# - name: Login to DockerHub -# uses: docker/login-action@v1 -# with: -# username: ${{ secrets.DOCKERHUB_USERNAME }} -# password: ${{ secrets.DOCKERHUB_TOKEN }} -# - name: Build and push -# uses: docker/build-push-action@v2 -# with: -# platforms: |- -# linux/amd64 -# linux/arm64 -# push: true -# tags: help14/ocean:latest +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + platforms: |- + linux/amd64 + linux/arm64 + push: true + tags: help14/ocean:latest diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index fe1ff8c..9fecb48 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -1,12 +1,8 @@ name: release build -# on: -# release: -# types: [created] on: - push: - branches: - - "main" + release: + types: [created] jobs: releases-matrix: