diff --git a/.github/workflows/ci-image.yml b/.github/workflows/ci-image.yml new file mode 100644 index 0000000..05a21e1 --- /dev/null +++ b/.github/workflows/ci-image.yml @@ -0,0 +1,41 @@ +name: Docker Image CI + +on: + workflow_dispatch: + pull_request: + branches: + - main + push: + branches: + - "*" + +jobs: + dockerimage: + strategy: + matrix: + surface: [bed, surface] + res: [30s] + version: [v1] + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Build and Push + uses: docker/build-push-action@v3 + with: + context: bedrock/ + platforms: linux/amd64, linux/arm64 + push: false + build-args: | + ETOPO_RES=${{ matrix.res }} + ETOPO_VERSION=${{ matrix.version }} + ETOPO_SURFACE=${{ matrix.surface }} + VERSION=latest + diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1b3bb28..1351a00 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,15 +1,9 @@ -name: Docker Image CI +name: Docker Image Build Push CI on: - workflow_dispatch: - pull_request: - branches: - - main push: - branches: + tags: - "*" - release: - types: [created] concurrency: group: "docker-image" @@ -46,13 +40,6 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - name: Generate repository name run: | echo "REPOSITORY_PATH=$( echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]' )" >> ${GITHUB_ENV} @@ -61,8 +48,8 @@ jobs: uses: docker/build-push-action@v3 with: context: bedrock/ - platforms: linux/amd64, linux/arm64/v8 - push: ${{ github.event_name == 'release' && github.event.action == 'created' }} + platforms: linux/amd64, linux/arm64 + push: true build-args: | ETOPO_RES=${{ matrix.res }} ETOPO_VERSION=${{ matrix.version }} @@ -77,4 +64,14 @@ jobs: ghcr.io/${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}-${{ matrix.res }}-${{ env.REPOSITORY_SHA }} ghcr.io/${{ env.REPOSITORY_PATH }}:${{ matrix.surface }}-${{ matrix.res }} ghcr.io/${{ env.REPOSITORY_PATH }}:${{ matrix.surface }} - + - + name: GitHub Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + draft: false + prerelease: false + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body_path: CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..530db6b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# 1.2.10 (2023-04-05) + +* Updated 2022 ETOPO 30 Arc Second +* deploy from tag push