mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* add github actions workflow for tag releases * migrate drone build &test step to github actions * fix minio service * fix indentation * fix dependency syntax * remove needs keyword * fix service hostnames, add protectedredis * update protected redis docker image * fix too many args error * exclude vendor dir from gofmt * fix fmt errors * fix fmt errors * rm .drone.yml * rename workflow name * break test step * remove vendor step * use makefile rule * use buildx
30 lines
882 B
YAML
30 lines
882 B
YAML
name: Release canary and commit tags
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
docker-push-main:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build and push canary tag
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
file: cmd/proxy/Dockerfile
|
|
build-args: VERSION=${{github.sha}}
|
|
tags: gomods/athens:canary
|
|
- name: Build and push commit tag
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
file: cmd/proxy/Dockerfile
|
|
build-args: VERSION=${{github.sha}}
|
|
tags: gomods/athens-dev:${GITHUB_SHA::7}
|