Skip to content

refactor: Fix static lint #42

refactor: Fix static lint

refactor: Fix static lint #42

Workflow file for this run

name: Test and push docker images
on:
push:
branches:
- '*'
pull_request:
branches: [ master ]
jobs:
test-project:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Install Compose
uses: ndeloof/[email protected]
with:
version: v2.23.3
legacy: true
- name: Build and Test Docker Images
run: |
make test-upload
build-and-push:
runs-on: ubuntu-latest
needs: test-project
if: github.ref == 'refs/heads/master'
env:
IMAGE_NAME: ghcr.io/${{ github.actor }}/transcoder
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Build and Push Docker Image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
IMAGE_VERSION=$(git rev-parse --short HEAD) make push-images
IMAGE_VERSION=latest make push-images