Skip to content

remove test build steps #12

remove test build steps

remove test build steps #12

name: Build & Release GC armiarma scraper
on:
push:
branches:
- ci
concurrency:
group: gc-armiarma-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Organization Name
id: org_name
run: |
org_name=$(echo "${{ github.repository_owner }}")
echo "Organization Name: $org_name"
echo "org_name=$org_name" >> $GITHUB_OUTPUT
- name: Extract commit
id: commit
uses: prompt/actions-commit-hash@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ steps.org_name.outputs.org_name }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Push Latest
run: |
docker build . --tag ghcr.io/${{ steps.org_name.outputs.org_name }}/armiarma:latest
docker push ghcr.io/${{ steps.org_name.outputs.org_name }}/armiarma:latest
- name: Push Versioned
run: |
docker build . --tag ghcr.io/${{ steps.org_name.outputs.org_name }}/armiarma:${{ steps.commit.outputs.short }}
docker push ghcr.io/${{ steps.org_name.outputs.org_name }}/armiarma:${{ steps.commit.outputs.short }}