Skip to content

Update ci.yml

Update ci.yml #3

Workflow file for this run

name: ci
on:
- push
jobs:
docker:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- name: Docker login
run: |
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/buildtheearth/shorter:latest
build-args: BUILD_ID=${{ github.sha }}