Skip to content

Merge pull request #33 from Golang-Venezuela/FernandoFH-patch-3 #26

Merge pull request #33 from Golang-Venezuela/FernandoFH-patch-3

Merge pull request #33 from Golang-Venezuela/FernandoFH-patch-3 #26

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
name: Integration
strategy:
matrix:
os:
- ubuntu-latest
go_version:
- '1.20'
- '1.21'
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
- name: Set up tools
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
- uses: actions/checkout@v4
- name: Build
run: make build
- name: Test
run: make test-race
- name: Coverage
run: |
make coverage
mv coverage-dev.txt coverage.txt
bash <(curl -s https://codecov.io/bash)
- name: Lint
run: make lint
- name: Code Analysis
run: make ca
- name: Notify Telegram
uses: yanzay/[email protected]
continue-on-error: true
if : always()
with:
chat: ${{ secrets.chat }}
token: ${{ secrets.token }}
status: ${{ job.status }}
build-image:
name: Build Image for Deployment
needs: ci
runs-on: ubuntu-latest
env:
DOCKER_IMAGE_NAME: ghcr.io/euler-b/golang-venezuela/adan-bot
steps:
- name: Get source code
uses: actions/checkout@v4
- name: "Login into Github Container Registry (a.k.a. ghcr.io)"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
push: true
tags: latest
labels: ${{ DOCKER_IMAGE_NAME }}

Check failure on line 83 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 83, Col: 19): Unrecognized named-value: 'DOCKER_IMAGE_NAME'. Located at position 1 within expression: DOCKER_IMAGE_NAME