Skip to content

build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 #42

build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0

build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 #42

Workflow file for this run

name: Build Docker image and publish to GHCR
on:
push:
branches:
main
tags:
v*
env:
REGISTRY: ghcr.io
IMAGE_NAME: hbtgmbh/air-pollution-service
BUILD_ID: ${{github.run_number}}
jobs:
test:
name: Test and lint
uses: HBTGmbH/air-pollution-service/.github/workflows/test.yml@main
build:
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BUILD_ID }} -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest .
- name: Push Docker image to Docker Hub
run: docker push -a ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}