Skip to content

Bump alpine from 3.16.2 to 3.19.1 #173

Bump alpine from 3.16.2 to 3.19.1

Bump alpine from 3.16.2 to 3.19.1 #173

Workflow file for this run

name: Release
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
version:
# Friendly description to be shown in the UI instead of 'name'
description: "Semver type of new version (major / minor / patch)"
# Input has to be provided for the workflow to run
required: true
type: choice
options:
- patch
- minor
- major
jobs:
# Run the linting and tests
hadolint:
uses: SkynetLabs/.github/.github/workflows/reusable_dockerfile_lint.yml@master
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.18"
- name: Install analyze
run: go install gitlab.com/NebulousLabs/analyze@latest
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.0
- name: Update Dependecies and Clean Up
run: make deps
- name: Lint
run: make lint
- name: Run unit tests
run: make test
- name: Start Mongo Container
run: make start-mongo
- name: Run Long tests
run: make test-long-ci
# Make a release if
# - This is a manually trigger job, i.e. workflow_dispatch
release:
needs: [hadolint, test]
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' }}
outputs:
new_version: ${{ steps.version.outputs.new-version }}
steps:
- uses: actions/checkout@v3
- name: Version Release
id: version
uses: SkynetLabs/.github/.github/actions/version-release@master
with:
github-token: ${{secrets.GITHUB_TOKEN}}
version-bump: ${{github.event.inputs.version}}
docker:
needs: release
name: Build and Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- uses: SkynetLabs/.github/.github/actions/docker-publish@master
with:
docker_username: ${{ secrets.DOCKER_USERNAME}}
docker_password: ${{ secrets.DOCKER_PASSWORD}}
docker_repository: skynetlabs/skynet-accounts
semver_version: ${{ needs.release.outputs.new_version }}