Skip to content

build(deps): bump golang.org/x/net from 0.14.0 to 0.17.0 #20

build(deps): bump golang.org/x/net from 0.14.0 to 0.17.0

build(deps): bump golang.org/x/net from 0.14.0 to 0.17.0 #20

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: CI
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Test
run: make test
- name: Build
run: make build
build-image:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v3
-
name: Build the Docker image
run: |
make build
make image
if [[ ${{ github.ref_name }} == "master" ]]; then make push-image; fi
if [[ ${{ github.ref_name }} == "develop" ]]; then make push-develop; fi
if [[ ${{ github.ref_type }} == "tag" ]]; then make push-tag; fi