Skip to content

Commit

Permalink
Push to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrodnm committed Apr 22, 2024
1 parent cd7fae4 commit 5cadc91
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Go

on:
push:
branches: [master, main]
branches: [main]
pull_request:
branches: ["**"]

Expand Down Expand Up @@ -34,3 +32,29 @@ jobs:
- name: Test
run: go test -v ./...

build-and-push:
needs: build
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.ORG_DOCKER_HUB_USERNAME }}
password: ${{ secrets.ORG_DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: timescale/timescaledb-parallel-copy:latest

0 comments on commit 5cadc91

Please sign in to comment.