Skip to content

Bump constructs from 10.2.52 to 10.2.67 in /infra #156

Bump constructs from 10.2.52 to 10.2.67 in /infra

Bump constructs from 10.2.52 to 10.2.67 in /infra #156

on:
push:
branches:
- main
pull_request:
name: build and push http interactions server
jobs:
httpserver:
strategy:
matrix:
go-version:
- 1.20.5
runs-on: ubuntu-latest
steps:
- name: install go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: checkout code
uses: actions/checkout@v3
- name: setup qemu
uses: docker/setup-qemu-action@v2
- name: setup docker
uses: docker/setup-buildx-action@v2
- name: login to github docker registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: docker build and push
if: github.ref != 'refs/heads/main'
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/tonkat-su/interactions-server:${{ github.event.pull_request.head.ref }}
- name: docker build and push
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/tonkat-su/interactions-server:latest